-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Chart: Add topologySpreadConstraints
for default backend.
#11197
Chart: Add topologySpreadConstraints
for default backend.
#11197
Conversation
Hi @msfidelis. 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. |
✅ Deploy Preview for kubernetes-ingress-nginx canceled.
|
/assign |
/kind feature |
/retitle Chart: Add |
topologySpreadConstraints
for default backend.
/triage accepted |
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.
I left a comment about where and how to add the new value. Also it would be nice to at least have some unit tests for that. I know, it does not exist for the controller either, but maybe you can add some for the both of them.
/label tide/merge-method-squash |
You forgot to re-generate the documentation. Also please move the values to the suggested place in the |
d151996
to
faf9e9f
Compare
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.
See my suggestion. I thought I already suggested that earlier. And still, please move the new value right below the affinity section. Thank you!
charts/ingress-nginx/values.yaml
Outdated
@@ -1075,6 +1075,26 @@ defaultBackend: | |||
priorityClassName: "" | |||
# -- Labels to be added to the default backend resources | |||
labels: {} | |||
# -- Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in. | |||
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ |
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.
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ | |
# Ref.: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ |
faf9e9f
to
5a81a66
Compare
3842aef
to
1366a3b
Compare
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.
Added some last suggestions. We are close to merging. ;)
charts/ingress-nginx/values.yaml
Outdated
@@ -998,6 +997,26 @@ defaultBackend: | |||
# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)" | |||
|
|||
affinity: {} | |||
# -- Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in. | |||
# Ref.: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ | |||
# |
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 can safely omit this line. The way we are currently doing it for controller.topologySpreadConstraints
isn't perfect, so don't relate to that.
charts/ingress-nginx/values.yaml
Outdated
@@ -998,6 +997,26 @@ defaultBackend: | |||
# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)" | |||
|
|||
affinity: {} | |||
# -- Topology spread constraints rely on node labels to identify the topology domain(s) that each Node is in. | |||
# Ref.: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ | |||
# |
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.
# |
charts/ingress-nginx/values.yaml
Outdated
# app.kubernetes.io/component: default-backend | ||
# topologyKey: kubernetes.io/hostname | ||
# maxSkew: 1 | ||
# whenUnsatisfiable: ScheduleAnyway |
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.
# whenUnsatisfiable: ScheduleAnyway | |
# whenUnsatisfiable: ScheduleAnyway |
charts/ingress-nginx/values.yaml
Outdated
@@ -308,7 +308,6 @@ controller: | |||
# topologyKey: kubernetes.io/hostname | |||
# maxSkew: 1 | |||
# whenUnsatisfiable: ScheduleAnyway | |||
|
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.
Please keep that line.
Also, I will take care about the unit tests later. So no worries about that. |
7d863d2
to
95d20aa
Compare
feature(default_backend): topologySpread support feature(default_backend): topologySpread support feature(default_backend): helm-docs feature(default_backend): helm-docs feature(default_backend): helm-docs feature(default_backend): helm-docs feature(default_backend): nit feature(default_backend): nit feature(default_backend): nit
95d20aa
to
adeb875
Compare
charts/ingress-nginx/values.yaml
Outdated
@@ -308,7 +308,7 @@ controller: | |||
# topologyKey: kubernetes.io/hostname | |||
# maxSkew: 1 | |||
# whenUnsatisfiable: ScheduleAnyway | |||
|
|||
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.
Thanks for adding it back :) Seems you also added some trailing whitespaces, CI doesn't like them.
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.
Sorry for the troubles 😢
/ok-to-test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Gacko, msfidelis 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 |
Thanks a lot (again) for your contribution! |
What this PR does / why we need it:
Types of changes
Which issue/s this PR fixes
fixes #11194
How Has This Been Tested?
Checklist: