Skip to content

Commit 1ca1754

Browse files
committed
feat(helm chart): add poddisruptionbudget
1 parent b1c7b93 commit 1ca1754

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{- if .Values.pdb.enabled }}
2+
apiVersion: policy/v1
3+
kind: PodDisruptionBudget
4+
metadata:
5+
name: {{ include "cert-manager-ibm-cis-webhook.fullname" . }}
6+
labels:
7+
app.kubernetes.io/name: {{ include "cert-manager-ibm-cis-webhook.name" . }}
8+
chart: {{ include "cert-manager-ibm-cis-webhook.chart" . }}
9+
release: {{ .Release.Name }}
10+
heritage: {{ .Release.Service }}
11+
spec:
12+
maxUnavailable: 10%
13+
selector:
14+
matchLabels:
15+
release: {{ .Release.Name }}
16+
{{- end }}

deploy/cert-manager-ibm-cis-webhook/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ service:
3434
type: ClusterIP
3535
port: 443
3636

37+
pdb:
38+
enabled: true
39+
3740
resources: {}
3841
# We usually recommend not to specify default resources and to leave this as a conscious
3942
# choice for the user. This also increases chances charts run on environments with little

0 commit comments

Comments
 (0)