fluxcd/flagger

lastTransitionTime changes every minute on Failed canary

mochja opened this issue · 0 comments

Describe the bug

Failed Canary is updated every minute with only change to .status.lastTransitionTime.

image

$ kubectl get canaries foo --watch
NAME                   STATUS   WEIGHT   LASTTRANSITIONTIME
foo   Failed   0        2024-08-14T15:51:11Z
foo   Failed   0        2024-08-14T15:52:11Z
foo   Failed   0        2024-08-14T15:53:11Z
foo   Failed   0        2024-08-14T15:54:11Z
foo   Failed   0        2024-08-14T15:55:11Z
foo   Failed   0        2024-08-14T15:56:11Z
foo   Failed   0        2024-08-14T15:57:11Z
foo   Failed   0        2024-08-14T15:58:11Z
foo   Failed   0        2024-08-14T15:59:11Z

To Reproduce

  1. Trigger canary deployment
  2. Fail the analysis so that the Canary status transitions to "Failed"
  3. Observe change in in .status.lastTransitionTime after 2 minutes

Expected behavior

.status.lastTransitionTime is updated only during a transition.

Additional context

  • Flagger version: 1.37.0
  • Kubernetes version: 1.29
  • Service Mesh provider: istio
  • Ingress provider: istio