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
kubectl doesn't patch removing serviceAccountName from deployment #108208
Comments
/sig cli |
/triage accepted |
@mkrutik As a workaround, I think you could try |
@knight42 is right, this issue is due to the deprecated field is overriding it. I think, best thing is to use /remove-triage accepted |
/wg api-expression |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
For anyone stumbling into this issue, its effectively a dupe of #72519 which was closed with a comment indicating this is somewhat intentional.
|
which *must be done* according to an amazing thread of issues reported by humans bitten by this intentional inconsistency in kubernetes "apply" behavior 🎉 As referenced in the body of this change, one may trace back through this gotcha from this issue comment: kubernetes/kubernetes#108208 (comment) and also see this mention in the kubernetes docs in a "Note" callout near the end of this section: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-multiple-service-accounts
which *must be done* according to an amazing thread of issues reported by humans bitten by this intentional inconsistency in kubernetes "apply" behavior 🎉 As referenced in the body of this change, one may trace back through this gotcha from this issue comment: kubernetes/kubernetes#108208 (comment) and also see this mention in the kubernetes docs in a "Note" callout near the end of this section: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-multiple-service-accounts
which *must be done* according to an amazing thread of issues reported by humans bitten by this intentional inconsistency in kubernetes "apply" behavior 🎉 As referenced in the body of this change, one may trace back through this gotcha from this issue comment: kubernetes/kubernetes#108208 (comment) and also see this mention in the kubernetes docs in a "Note" callout near the end of this section: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-multiple-service-accounts
What happened?
kubectl apply -f
doesn't patch removedserviceAccountName
from theDeployment
manifest.What did you expect to happen?
Removed
serviceAccountName
fromDeployment
must be applied usingkubectl apply -f deployment.yaml
command. (or at least show some warning that it's not applied due to some reasons)How can we reproduce it (as minimally and precisely as possible)?
Deployment
manifest with anyserviceAccountName
within and apply it.serviceAccountName
field fromDeployment
and apply it viakubectl apply -f
command (use-v=9
to see req/resp logs).describe
orget
command to get thatDeployment
and you should find thatserviceAccountName
still exists.Anything else we need to know?
No response
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: