Skip to content

Commit 1454687

Browse files
Merge pull request #336 from younsl/pdb/unhealthy-pod-eviction-policy
feat(oauth2-proxy): Support spec.unhealthyPodEvictionPolicy field for PDB
2 parents 2b95e8c + 9e89565 commit 1454687

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 7.17.1
2+
version: 7.18.0
33
apiVersion: v2
44
appVersion: 7.11.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/
@@ -31,8 +31,10 @@ maintainers:
3131
kubeVersion: ">=1.16.0-0"
3232
annotations:
3333
artifacthub.io/changes: |
34-
- kind: changed
35-
description: Updated the Redis chart to the latest version
34+
- kind: added
35+
description: Added support for PodDisruptionBudget unhealthyPodEvictionPolicy
3636
links:
3737
- name: Github PR
38-
url: https://github.com/oauth2-proxy/manifests/pull/334
38+
url: https://github.com/oauth2-proxy/manifests/pull/336
39+
- name: Kubernetes documentation
40+
url: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#unhealthy-pod-eviction-policy

helm/oauth2-proxy/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ The following table lists the configurable parameters of the oauth2-proxy chart
181181
| `podDisruptionBudget.enabled` | Enabled creation of PodDisruptionBudget (only if replicaCount > 1) | true |
182182
| `podDisruptionBudget.maxUnavailable` | maxUnavailable parameter for PodDisruptionBudget, one of maxUnavailable and minAvailable must be null | null |
183183
| `podDisruptionBudget.minAvailable` | minAvailable parameter for PodDisruptionBudget, one of maxUnavailable and minAvailable must be null | 1 |
184+
| `podDisruptionBudget.unhealthyPodEvictionPolicy` | Policy for when unhealthy pods should be considered for eviction. Valid values are "IfHealthyBudget" and "AlwaysAllow". See [Kubernetes docs](https://kubernetes.io/docs/tasks/run-application/configure-pdb/#unhealthy-pod-eviction-policy) | `""` |
184185
| `podSecurityContext` | Kubernetes security context to apply to pod | `{}` |
185186
| `priorityClassName` | priorityClassName | `nil` |
186187
| `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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ spec:
1717
{{- with .Values.podDisruptionBudget.minAvailable }}
1818
minAvailable: {{ . }}
1919
{{- end }}
20+
{{- with .Values.podDisruptionBudget.unhealthyPodEvictionPolicy }}
21+
unhealthyPodEvictionPolicy: {{ . }}
22+
{{- end }}
2023
{{- end }}

helm/oauth2-proxy/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ podDisruptionBudget:
311311
enabled: true
312312
maxUnavailable: null
313313
minAvailable: 1
314+
# Policy for when unhealthy pods should be considered for eviction.
315+
# Valid values are "IfHealthyBudget" and "AlwaysAllow".
316+
# Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#unhealthy-pod-eviction-policy
317+
unhealthyPodEvictionPolicy: ""
314318

315319
## Horizontal Pod Autoscaling
316320
## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/

0 commit comments

Comments
 (0)