@@ -53,14 +53,21 @@ poll_interval: 2s
5353# Shorter debounce intervals for development.
5454message_decision :
5555 params :
56- ref_time : ' condition("Reconciled").last_updated_time'
57- is_reconciled : ' condition("Reconciled").status == "True"'
58- has_ref_time : ' ref_time != ""'
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'
56+ - name : ref_time
57+ expr : ' condition("Reconciled").last_updated_time'
58+ - name : is_reconciled
59+ expr : ' condition("Reconciled").status == "True"'
60+ - name : has_ref_time
61+ expr : ' ref_time != ""'
62+ - name : is_new_resource
63+ expr : ' !is_reconciled && resource.generation == 1'
64+ - name : generation_mismatch
65+ expr : ' resource.generation > condition("Reconciled").observed_generation'
66+ - name : reconciled_and_stale
67+ expr : ' is_reconciled && has_ref_time && now - timestamp(ref_time) > duration("2m")'
68+ - name : not_reconciled_and_debounced
69+ expr : ' !is_reconciled && has_ref_time && now - timestamp(ref_time) > duration("5s")'
70+ result : " is_new_resource || generation_mismatch || reconciled_and_stale || not_reconciled_and_debounced"
6471
6572# Messaging system type for OpenTelemetry tracing attributes.
6673# Should match the actual message broker being used for accurate observability.
0 commit comments