You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When iterating over a map in Go, the order of elements is not guaranteed and may vary between iterations. In the context of the Gateway API provider, the four following maps:
are transformed into four slices, where the order becomes significant when comparing using go-cmp.
If sessionAffinity or Mirror is used, the comparison of these slices will be ignored. However, in other cases, any differences in the slices will lead the Flagger operator to believe that the HttpRoute has changed, triggering unnecessary canary analysis restarts."
To Reproduce
run canary analysis with gateway api without sessionAffinity or Mirror
Expected behavior
canary analysis run only once
Additional context
Flagger version: 1.38.0
Kubernetes version: 1.30
Service Mesh provider:
Ingress provider: GCP Gateway API
The text was updated successfully, but these errors were encountered:
mingjie-li
pushed a commit
to mingjie-li/flagger
that referenced
this issue
Oct 18, 2024
Describe the bug
When iterating over a map in Go, the order of elements is not guaranteed and may vary between iterations. In the context of the Gateway API provider, the four following maps:
are transformed into four slices, where the order becomes significant when comparing using go-cmp.
If sessionAffinity or Mirror is used, the comparison of these slices will be ignored. However, in other cases, any differences in the slices will lead the Flagger operator to believe that the HttpRoute has changed, triggering unnecessary canary analysis restarts."
To Reproduce
run canary analysis with gateway api without sessionAffinity or Mirror
Expected behavior
canary analysis run only once
Additional context
The text was updated successfully, but these errors were encountered: