-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Fix standardFinalizers - add missing metav1.FinalizerDeleteDependents #46500
Fix standardFinalizers - add missing metav1.FinalizerDeleteDependents #46500
Conversation
Hi @tnozicka. 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 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. |
@yujuhong kicking over to the node team |
/lgtm |
/release-note-none |
You need to call the hack/update-staging-client-go.sh to update the staging code, otherwise the verification will fail. Since it's just one line, manually copy it would be easier. |
@k8s-bot ok to test |
I guess we didn't catch the bug because the finalizer is usually set via the DeleteOptions at the REST layer, which is not subject to validation. |
/assign @lavalamp |
fcaf70e
to
9ed01e4
Compare
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: caesarxuchao, lavalamp, tnozicka The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
@k8s-bot pull-kubernetes-e2e-kops-aws test this |
@k8s-bot pull-kubernetes-verify test this |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
@k8s-bot pull-kubernetes-federation-e2e-gce test this |
@tnozicka: 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. |
Automatic merge from submit-queue (batch tested with PRs 46648, 46500, 46238, 46668, 46557) |
It's in 1.7, but need to be backported to 1.6. |
Sent #47994. |
Commit found in the "release-1.6" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
What this PR does / why we need it:
It adds FinalizerDeleteDependents to standardFinalizers otherwise this finalizer is unusable because apiserver will fail validation because it is not fully qualified name - but it is a standard Kubernetes finalizer used by garbage collector but it can't be set.
It's sibling FinalizerOrphanDependents is already there. I suppose this is a bug because otherwise
FinalizerDeleteDependents
is unusable.Fixes openshift/origin#14322
Might fix #45764
Not for the reviewer:
This same definition is also in staging. Does it get propagated to staging automatically? Editing the same file twice doesn't seem like the intended option.