update_record_reconciled_timestamp

Function update_record_reconciled_timestamp 

Source
pub async fn update_record_reconciled_timestamp(
    client: &Client,
    zone_namespace: &str,
    zone_name: &str,
    record_kind: &str,
    record_name: &str,
    record_namespace: &str,
) -> Result<()>
Expand description

Update lastReconciledAt timestamp for a record in DNSZone.status.selectedRecords[].

This signals that the record has been successfully configured in BIND9. Future reconciliations will skip this record until the timestamp is reset.

§Arguments

  • client - Kubernetes API client
  • zone_namespace - Namespace of the DNSZone
  • zone_name - Name of the DNSZone
  • record_kind - Kind of the record (e.g., “ARecord”, “CNAMERecord”)
  • record_name - Name of the record resource
  • record_namespace - Namespace of the record resource

§Errors

Returns an error if:

  • DNSZone cannot be fetched from Kubernetes API
  • Record is not found in zone’s selectedRecords[] array
  • Status patch operation fails