Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit c23df34

Browse files
committed
Add Pod Disruption Budget to Helm Charts
Signed-off-by: Yudi A Phanama <[email protected]>
1 parent 52ceb13 commit c23df34

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{- if .Values.podDisruptionBudget.enabled -}}
2+
apiVersion: policy/v1beta1
3+
kind: PodDisruptionBudget
4+
metadata:
5+
name: {{ include "kube-oidc-proxy.fullname" . }}
6+
namespace: {{ $.Release.Namespace }}
7+
labels:
8+
{{ include "kube-oidc-proxy.labels" . | indent 4 }}
9+
spec:
10+
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
11+
selector:
12+
matchLabels:
13+
app.kubernetes.io/name: {{ include "kube-oidc-proxy.name" . }}
14+
app.kubernetes.io/instance: {{ .Release.Name }}
15+
{{- end }}

deploy/charts/kube-oidc-proxy/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ ingress:
6868
# hosts:
6969
# - chart-example.local
7070

71+
# Enable Pod Disruption Budget
72+
podDisruptionBudget:
73+
enabled: false
74+
minAvailable: 1
75+
7176
resources: {}
7277
# We usually recommend not to specify default resources and to leave this as a conscious
7378
# choice for the user. This also increases chances charts run on environments with little

0 commit comments

Comments
 (0)