Skip to content
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

Tortoise mutating webhook removes appArmorProfile from pod spec #417

Open
randytqwjp opened this issue Sep 30, 2024 · 3 comments
Open

Tortoise mutating webhook removes appArmorProfile from pod spec #417

randytqwjp opened this issue Sep 30, 2024 · 3 comments

Comments

@randytqwjp
Copy link
Collaborator

Kubernetes v1.30 deprecates enabling appArmor through annotations and enables it via securitycontext. Tortoise seems to remove this securitycontext through the mutating webhook {"configuration":"tortoise-mutating-webhook-configuration","webhook":"mpod.kb.io","patch":[{"op":"remove","path":"/spec/containers/0/securityContext/appArmorProfile"},

@randytqwjp
Copy link
Collaborator Author

@sanposhiho I suspect this could be due to underlying libs like container runtime being out of date causing the field to be securitycontext field to be dropped. An upgrade to support kubernetes v1.30 would require a major version upgrade for kubebuilder https://github.com/kubernetes-sigs/kubebuilder/releases?q=v3&expanded=true

@sanposhiho
Copy link
Collaborator

Yeah, we don't touch security context in our webhooks directly ourselves, so it should be caused by underlying dependencies like kubebuilder.

@lchavey
Copy link

lchavey commented Oct 17, 2024

Will do next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants