-
Notifications
You must be signed in to change notification settings - Fork 974
Open
kubernetes/kubernetes
#133364Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.
Description
What happened:
When updating a k8s deployment that was using the old annotation approach to the new security context approach, the edit will go though, but the deployment remains unchanged
What you expected to happen:
The change should be applied to the deployment
How to reproduce it (as minimally and precisely as possible):
- Create a dummy k8s deployment with annotation under
template
:annotations: container.apparmor.security.beta.kubernetes.io/test-container: localhost/test_container_profile
- Edit the deployment to remove the annotation and edit the
securityContext
to besecurityContext: appArmorProfile: type: "Localhost" localhostProfile: "test_container_profile"
- Obeserve that the edit will go though, but if you edit / describe it again, the annotation is gone, but the
securityContext
update is not there.
Anything else we need to know?:
Environment:
- Kubernetes client and server versions (use
kubectl version
):- Client Version: v1.33.2
- Kustomize Version: v5.6.0
- Server Version: v1.32.5-eks-5d4a308
- Cloud provider or hardware configuration: AWS EKS
- OS (e.g:
cat /etc/os-release
): MacOS
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.