-
Notifications
You must be signed in to change notification settings - Fork 922
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 --prune does not delete last managed item(s) in namespace #555
Comments
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: 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. |
@TheKangaroo can you reopen this? |
I'm sorry, but I no longer work on the clusters we used prune apply back then. |
Is this a BUG REPORT or FEATURE REQUEST?:
BUG
Kubernetes version (use
kubectl version
):Environment:
uname -a
): 4.14.67-coreosWhat happened:
kubctl apply --prune won't delete a resource (or multiple resources) if there is no other resource with the selected label left in this namespace.
What you expected to happen:
prune should delete all resources with the specified label if they are not in the set of applied resources.
How to reproduce it (as minimally and precisely as possible):
Apply a pod to a namespace and two pods to another namespace.
If you delete one pod definition in the second namespace prune apply works as expected:
But if I want to delete both resources from the second namespace, nothing happens:
Anything else we need to know:
This happens regardless if I delete one or multiple resources from the second namespace. Prune won't touch the second namespace if there are no manged resources left in there.
The text was updated successfully, but these errors were encountered: