parent_generation_changed

Function parent_generation_changed 

Source
pub fn parent_generation_changed(
    parent_generation: Option<i64>,
    observed_parent_generation: Option<i64>,
) -> bool
Expand description

Detects whether the parent cluster’s configuration changed since it was last observed.

Compares the parent’s current metadata.generation against the parent generation recorded in the instance’s status.observedParentGeneration. These are the ONLY two values that may be compared: the instance’s own observed_generation tracks a different, unrelated counter.

§Arguments

  • parent_generation - Current metadata.generation of the referenced Bind9Cluster/ClusterBind9Provider (None if no parent exists)
  • observed_parent_generation - Parent generation recorded during the last successful reconciliation (None if never recorded)

§Returns

true if the parent exists and its generation differs from the recorded value (or was never recorded), false otherwise.