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
[WIP] Add events for pending namespace deletions #71457
Conversation
Hi @wozniakjan. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
964ce4f
to
7c8274e
Compare
thanks for the pull request, but if the namespace is terminating, no events will be allowed to be created in it |
interesting, this differs from my observation. I clearly see a namespace in terminating with events created for it. Do you think this will be better implemented as status condition? |
I added my own finalizer to a namespace to get it to stick in terminating mode:
then tried to create an event in it:
what invocation are you using to start your API server? do you have the NamespaceLifecycle admission plugin enabled? It is enabled by default unless you override admission plugins with |
/ok-to-test |
@liggitt I believe
I examined the event
The involved object is populated correctly but namespace is actually
And I suspect the culprit is this part of the code I will take a look how persistent volume controller implements the events, PVs are "also" not namespaced so there should be a pattern I was supposed to follow I think Thanks for extremely valuable and super quick feedback :) |
@dims thanks for running the tests, I completely forgot about checking if I didn't break any (turns out I did) |
7c8274e
to
a4e69b1
Compare
/cc @logicalhan |
@fedebongio: GitHub didn't allow me to request PR reviews from the following users: logicalhan. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
4819771
to
f983166
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wozniakjan If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
f983166
to
919c0a1
Compare
@wozniakjan: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
@wozniakjan: PR needs rebase. 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. |
closing in favour of #73405 |
What type of PR is this?
/kind feature
/sig cli
/sig api-machinery
What this PR does / why we need it:
For users to understand what is preventing the namespace deletion and not remove
kubernetes
finalizer from namespaces: #64002, #60807, #66735Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #70916
Special notes for your reviewer:
sample output
Does this PR introduce a user-facing change?: