-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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: Implement unhealthyPodEvictionPolicy
.
#11992
base: main
Are you sure you want to change the base?
Chart: Implement unhealthyPodEvictionPolicy
.
#11992
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: chengjoey 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 |
Hi @chengjoey. 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. |
✅ Deploy Preview for kubernetes-ingress-nginx canceled.
|
382bbc3
to
fed5a8e
Compare
controller.unhealthyPodEvictionPolicy
.
@@ -17,5 +17,6 @@ spec: | |||
{{- include "ingress-nginx.selectorLabels" . | nindent 6 }} | |||
app.kubernetes.io/component: default-backend | |||
minAvailable: {{ .Values.defaultBackend.minAvailable }} | |||
unhealthyPodEvictionPolicy: IfHealthyBudget |
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 do not hard-code this. It's fine to just also add a value for the default backend. Consider renaming your PR then. 🙂
@@ -71,3 +71,30 @@ tests: | |||
asserts: | |||
- hasDocuments: | |||
count: 0 | |||
|
|||
- it: should create a PodDisruptionBudget with `IfHealthyBudget` unhealthyPodEvictionPolicy |
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.
- it: should create a PodDisruptionBudget with `IfHealthyBudget` unhealthyPodEvictionPolicy | |
- it: should create a PodDisruptionBudget with `unhealthyPodEvictionPolicy` if `controller.unhealthyPodEvictionPolicy` is set |
|
||
- it: should create a PodDisruptionBudget with `AlwaysAllow` unhealthyPodEvictionPolicy | ||
set: | ||
controller.replicaCount: 2 | ||
controller.unhealthyPodEvictionPolicy: AlwaysAllow | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: PodDisruptionBudget | ||
- equal: | ||
path: spec.unhealthyPodEvictionPolicy | ||
value: AlwaysAllow | ||
|
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.
This one is obsolete as it's just a different string value and we don't have any logic that's changing what you put into the value or changes the output depending on the value.
/triage accepted |
fed5a8e
to
d9e6f6c
Compare
Sorry, I think I wasn't clear on the default backend thingy. I hope it's fine for you if I implement it in your fork. 🙂 |
d9e6f6c
to
c20354e
Compare
controller.unhealthyPodEvictionPolicy
.unhealthyPodEvictionPolicy
.
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.
Okay, I implemented everything for adding unhealthyPodEvictionPolicy
for now. But as the current releases do not come with tests and docs for the default backend PDB at all, I'd first like to fix and cherry-pick this. Gimme a few minutes.
thanks for your help! @Gacko |
Here we go: #11993. Do you mind giving a review? |
What this PR does / why we need it:
Implement controller.unhealthyPodEvictionPolicy for controller PodDisruptionBudget
feat #11983
Types of changes
How Has This Been Tested?
Checklist: