-
Notifications
You must be signed in to change notification settings - Fork 40.9k
fix: prevent SSA from creating CR while CRD terminating #132467
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
Conversation
Welcome @sdowell! |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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-sigs/prow repository. |
Hi @sdowell. 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-sigs/prow repository. |
bcbaa59
to
07fbb8a
Compare
/cc @cici37 |
/ok-to-test |
staging/src/k8s.io/apiextensions-apiserver/test/integration/finalization_test.go
Show resolved
Hide resolved
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go
Outdated
Show resolved
Hide resolved
also check the linter warning:
|
staging/src/k8s.io/apiextensions-apiserver/test/integration/finalization_test.go
Outdated
Show resolved
Hide resolved
/lgtm |
LGTM label has been added. Git tree hash: fb08382bf601e4fda54be530ac50f20a8453c834
|
This change adds consistent validation for server side apply to prevent new CustomResources from being creating while its CustomResourceDefinition is in the terminating state.
/lgtm |
LGTM label has been added. Git tree hash: 98476752f9c3651a67996ed957d969a055962dd9
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, sdowell 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 |
fix: prevent SSA from creating CR while CRD terminating
This change adds consistent validation for server side apply to prevent new CustomResources from being creating while its
CustomResourceDefinition is in the terminating state.
What type of PR is this?
/kind bug
What this PR does / why we need it:
Normally when a CustomResourceDefinition is terminating, new CustomResources of that type are not allowed to be created. The validation was not implemented for SSA, meaning that CustomResources for a terminating CRD could still be created if the object is applied using SSA.
Which issue(s) this PR is related to:
Fixes #121490
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: