pub fn detect_instance_changes(
namespace: &str,
name: &str,
watch_instances: Option<&Vec<InstanceReference>>,
current_instances: &[InstanceReference],
) -> boolExpand description
Detect if the instance list changed between watch event and re-fetch.
This is critical for detecting when:
- New instances are added to
status.bind9Instances(viabind9InstancesFromselectors) - Instance
lastReconciledAttimestamps are cleared (e.g., instance deleted, needs reconfiguration)
NOTE: InstanceReference PartialEq ignores lastReconciledAt, so we must check timestamps separately!
§Arguments
namespace- Namespace for loggingname- Zone name for loggingwatch_instances- Instances from the watch event that triggered reconciliationcurrent_instances- Instances after re-fetching (current state)
§Returns
true if instances changed (list or timestamps), false otherwise