-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Canary ingress nginx prevent update of primary ingress due to admission webhook #787
Comments
The problem is in settings Line 221 in b8625d5
That makes primary ingress and canary ingress identical. Alternative approaches could be:
|
Hmm setting canary weight to 0 is not going to stop header based routing. I really don't understand why the validation fails, what's the point of having an on/off switch if it doesn't work? This seems like a bug in the ingress validation webhook. |
Agree I opened a ticket to ingess-nginx. |
@stefanprodan nginx guys said |
Hi all, same issue here. |
I have the same error, to solve I deleted the ValidatingWebhookConfiguration |
@stefanprodan why don't delete Canary Ingress instead of setting it to 'false' if that solve the issue? |
@stefanprodan is there workaround for this issue? |
The only workaround is to delete the nginx webhook. |
@stefanprodan what about to keep |
@vorozhko Would that work if there are headers/cookies conditions? |
It wouldn't, but why not to drop all conditions at the end of the canary and set weight to "0"? |
@vorozhko yes that seems like a good solution, would you like to help out implementing this change? |
What is the solution for this issue? Setting canary-weight to zero? |
@usrlocalang you need to update Flagger to the last release that contains the fix for this issue. |
Hi all,
we have a problem with ingress admission webhook.
Using podinfo as example we did a canary deployment.
Flagger created second ingress and after rollout was done it switch "canary" annotation from "true" to "false":
I added "test" annotation to main Ingress to trigger update:
Now when I try to apply main Ingress file I get admission webhook error:
podinfo Ingress
Flagger version: 1.6.1
Ingress nginx version: 0.43
The text was updated successfully, but these errors were encountered: