@@ -53,14 +53,14 @@ poll_interval: 2s
5353# Shorter debounce intervals for development.
5454message_decision :
5555 params :
56- ref_time : ' condition("Ready ").last_updated_time'
57- is_ready : ' condition("Ready ").status == "True"'
56+ ref_time : ' condition("Reconciled ").last_updated_time'
57+ is_reconciled : ' condition("Reconciled ").status == "True"'
5858 has_ref_time : ' ref_time != ""'
59- is_new_resource : ' !is_ready && resource.generation == 1'
60- generation_mismatch : ' resource.generation > condition("Ready ").observed_generation'
61- ready_and_stale : ' is_ready && has_ref_time && now - timestamp(ref_time) > duration("2m")'
62- not_ready_and_debounced : ' !is_ready && has_ref_time && now - timestamp(ref_time) > duration("5s")'
63- result : " is_new_resource || generation_mismatch || ready_and_stale || not_ready_and_debounced "
59+ is_new_resource : ' !is_reconciled && resource.generation == 1'
60+ generation_mismatch : ' resource.generation > condition("Reconciled ").observed_generation'
61+ reconciled_and_stale : ' is_reconciled && has_ref_time && now - timestamp(ref_time) > duration("2m")'
62+ not_reconciled_and_debounced : ' !is_reconciled && has_ref_time && now - timestamp(ref_time) > duration("5s")'
63+ result : ' is_new_resource || generation_mismatch || reconciled_and_stale || not_reconciled_and_debounced '
6464
6565# Messaging system type for OpenTelemetry tracing attributes.
6666# Should match the actual message broker being used for accurate observability.
@@ -82,7 +82,7 @@ messaging_system: "rabbitmq"
8282#
8383# Examples:
8484# field: "resource.id" — field access
85- # field: 'condition("Ready ").status == "True" ? "Ready " : "NotReady "' — conditional
85+ # field: 'condition("Reconciled ").status == "True" ? "Reconciled " : "NotReconciled "' — conditional
8686# field: '"constant"' — CEL string literal
8787# field: "reason" — decision reason
8888#
@@ -102,7 +102,7 @@ message_data:
102102# kind: "resource.owner_references.kind"
103103
104104 # examples of other possible fields
105- # ready_status : 'resource.status.conditions.filter(c, c.type=="Ready ")[0].value == "True" ? "Ready " : "NotReady "'
105+ # reconciled_status : 'resource.status.conditions.filter(c, c.type=="Reconciled ")[0].status == "True" ? "Reconciled " : "NotReconciled "'
106106 # origin: "hyperfleet-sentinel"
107107
108108# For local development, use environment variable:
0 commit comments