-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Mutating Webhook is being ignored #624
Comments
@EinavDanielDX The config appears to be incorrect, e.g. there is no Here is an example: https://github.com/estahn/k8s-image-swapper/blob/main/.k8s-image-swapper.yml I think I need to find a better way of surfacing config issues. |
Thank you for your response. Anyway, I am using Kyverno instead now, its a bit more complicated but got the job done. A note worth mentioning:
Could be helpful to add this note to an installation\configuration guide |
Right, I didn't realise it is the helm config 🤦🏼 That is good feedback. I will try to add this to the documentation. I haven't worked with EKS yet, so not sure where exactly this should go. |
You can read about the issue with EKS here, it is relevant to any webhook service. So in case a user of k8s-image-swapper is using EKS with 3rd party CNI, he should have the following applied in the deployment corresponding to the webhook
Kyverno had documented it pretty well in their helm chart and I find it most convenient:
|
@EinavDanielDX Awesome, thanks for that! I looked at Kyverno a couple of years ago. Out of curiosity, is this a 1:1 replacement for |
tl'dr: Longer version: I would have been happy to implement k8s-image-swapper as it is a less complicated solution, though I failed and had to come with an alternative ASAP. One more feedback I would suggest: With Kyverno I can mutate |
I have deployed k8s-image-swapper into my cluster and it looks like the webhook is being ignored. No log in webhook server regarding pod creation could be found.
Some details:
Platform: EKS, v1.24
swapper helm chart version: 1.8.0
swapper image version: 1.5.7
Values:
testing:
logs on webhook server:
The text was updated successfully, but these errors were encountered: