set_failure_conditions

Function set_failure_conditions 

Source
pub fn set_failure_conditions(
    status_updater: &mut DNSZoneStatusUpdater,
    reason: &str,
    message: &str,
)
Expand description

Sets the condition triple for a fatal zone configuration failure (in-memory).

Ensures the conditions converge to a consistent failed state:

  • Degraded=True with the failure reason and message
  • Ready=False with the same reason and message (a previously set Ready=True must never survive a failed reconciliation)
  • Progressing=False (the reconciliation attempt has finished)

ยงArguments

  • status_updater - Status updater collecting in-memory condition changes
  • reason - Programmatic failure reason in CamelCase (e.g. PrimaryFailed)
  • message - Human-readable failure explanation