pub fn cluster_status_changed(
current: Option<&Bind9ClusterStatus>,
conditions: &[Condition],
instance_count: i32,
ready_instances: i32,
instances: &[String],
generation: Option<i64>,
) -> boolExpand description
Determines whether the Bind9Cluster status patch is needed.
Compares the current status against the values about to be written. The patch is needed if any of the following changed:
instance_count,ready_instances, or the instance name listobserved_generation(so spec edits that don’t change counts/conditions still advanceobservedGenerationand stop perpetual re-reconciliation)- Any condition’s type, status, reason, or message
§Arguments
current- The status currently stored on the resource (if any)conditions- New conditions about to be writteninstance_count- New total instance countready_instances- New ready instance countinstances- New instance name listgeneration- Themetadata.generationabout to be written asobserved_generation
§Returns
true if the status patch should be applied, false if it can be skipped.