Skip to content

Commit 835fb65

Browse files
feat: add maxUnavailable option to PodDisruptionBudget (#317)
Co-authored-by: Pierluigi Lenoci <[email protected]>
1 parent a3c5a84 commit 835fb65

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 7.12.19
2+
version: 7.13.0
33
apiVersion: v2
44
appVersion: 7.9.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/
@@ -32,7 +32,7 @@ kubeVersion: ">=1.16.0-0"
3232
annotations:
3333
artifacthub.io/changes: |
3434
- kind: changed
35-
description: Updated the Redis chart to the latest version
35+
description: Allow maxUnavailable in PodDisruptionBudget
3636
links:
3737
- name: Github PR
38-
url: https://github.com/oauth2-proxy/manifests/pull/318
38+
url: https://github.com/oauth2-proxy/manifests/pull/317

helm/oauth2-proxy/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ The following table lists the configurable parameters of the oauth2-proxy chart
178178
| `podAnnotations` | annotations to add to each pod | `{}` |
179179
| `podLabels` | additional labels to add to each pod | `{}` |
180180
| `podDisruptionBudget.enabled` | Enabled creation of PodDisruptionBudget (only if replicaCount > 1) | true |
181-
| `podDisruptionBudget.minAvailable` | minAvailable parameter for PodDisruptionBudget | 1 |
181+
| `podDisruptionBudget.maxUnavailable` | maxUnavailable parameter for PodDisruptionBudget, one of maxUnavailable and minAvailable must be null | null |
182+
| `podDisruptionBudget.minAvailable` | minAvailable parameter for PodDisruptionBudget, one of maxUnavailable and minAvailable must be null | 1 |
182183
| `podSecurityContext` | Kubernetes security context to apply to pod | `{}` |
183184
| `priorityClassName` | priorityClassName | `nil` |
184185
| `readinessProbe.enabled` | enable Kubernetes readinessProbe. Disable to use oauth2-proxy with Istio mTLS. See [Istio FAQ](https://istio.io/help/faq/security/#k8s-health-checks) | `true` |

helm/oauth2-proxy/templates/poddisruptionbudget.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ spec:
1111
selector:
1212
matchLabels:
1313
{{- include "oauth2-proxy.selectorLabels" . | indent 6 }}
14+
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
1415
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
1516
{{- end }}

helm/oauth2-proxy/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,10 @@ enableServiceLinks: true
297297

298298
## PodDisruptionBudget settings
299299
## ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
300+
## One of maxUnavailable and minAvailable must be set to null.
300301
podDisruptionBudget:
301302
enabled: true
303+
maxUnavailable: null
302304
minAvailable: 1
303305

304306
## Horizontal Pod Autoscaling

0 commit comments

Comments
 (0)