-
Notifications
You must be signed in to change notification settings - Fork 40.7k
Fix validation of NodeSelectorTerm
in pod.nodeAffinity
#126327
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
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: astraw99 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
7a9b434
to
5737a07
Compare
@googs1025: The label(s) 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-sigs/prow repository. |
/sig apps |
/triage accepted |
friendly ping /PTAL @Jefftree :) |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
/ping @Jefftree |
This looks good to me though I'm not sure it needs ratcheting since it is a core type. /assign @thockin |
I think this has to be ratcheted and more than that it has to be compat-versioned. That means adding a gate (OK to start beta). If the gate is not set, use legacy behavior. If the gate is set then apply the rathet: If this is create, be strict. If this is an update and the old value was invalid, allow it to remain invalid, but if the olf value was valid, be strict. Beta in 33 (or 34 at this stage), GA in N+1, remove gate in N+4. @Jefftree is that what you were thinking, too? |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
What type of PR is this?
/kind bug
What this PR does / why we need it:
To add validation of
NodeSelectorTerm
in pod.nodeAffinity.Which issue(s) this PR fixes:
Fixes #126325
Special notes for your reviewer:
Also added some test cases covering this scenario.
Does this PR introduce a user-facing change?