-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Add deprecation notices related to PodAffinity's matchLabelKeys/mismatchLabelKeys #49602
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
Add deprecation notices related to PodAffinity's matchLabelKeys/mismatchLabelKeys #49602
Conversation
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
sanposhiho
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should:
- change this PR to only include the mention for PodAffinity.
- create another PR for PodTopologySpread for
dev-1.33branch so that this wouldn't be reflected onto the website until 1.33 is released.
|
/sig scheduling |
537caae to
14bd4e5
Compare
I've done.
I'll submit another PR for PodTopologySpread. |
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 827337839dc5abb8cbe2df30f1aace2982410acb |
content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
Outdated
Show resolved
Hide resolved
|
I've changed |
content/en/docs/concepts/scheduling-eviction/assign-pod-node.md
Outdated
Show resolved
Hide resolved
|
/cc @sftim |
7550bfb to
aad1b7c
Compare
No LGTM yet. Happy for other reviews to happen. |
sanposhiho
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
LGTM label has been added. DetailsGit tree hash: e422fbdfd1b9473ff6c20e9481cec35c7625dd0d |
|
/cc @sftim |
sftim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
|
|
||
| {{< caution >}} | ||
| It's not recommended to use `matchLabelKeys` with labels that might be updated directly on pods. | ||
| Even if you edit the pod's label that is specified at `matchLabelKeys` **directly**, (that is, not via a deployment), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Deployment should have a capital D; also, we have more than one API for workload management (eg StatefulSet is a thing).
|
|
||
| {{< caution >}} | ||
| It's not recommended to use `mismatchLabelKeys` with labels that might be updated directly on pods. | ||
| Even if you edit the pod's label that is specified at `mismatchLabelKeys` **directly**, (that is, not via a deployment), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Deployment should have a capital D; also, we have more than one API for workload management (eg StatefulSet is a thing).
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sftim The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
Add deprecation notices related to PodAffinity's
matchLabelKeys/mismatchLabelKeys.related:
matchLabelKeysin PodTopologySpread should insert a labelSelector like PodAffinity'smatchLabelKeyskubernetes#129480 (comment)Special notes for your reviewer
This notification was found when we discussed about PodTopologySpread's
matchLabelKeys.(#129480)But the same can be applied to PodAffinity's
matchLabelKeys/mismatchLabelKeys.