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

Commit 59851e1

Browse files
authored
Merge pull request #65 from kops-dev/63-fix-pdb-issues-1
fix pdb min replicas
2 parents 97cdd21 + 1dc556f commit 59851e1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if gt (int .Values.minReplicas) 1 }}
12
apiVersion: policy/v1
23
kind: PodDisruptionBudget
34
metadata:
@@ -6,4 +7,5 @@ spec:
67
minAvailable: {{ .Values.minAvailable }}
78
selector:
89
matchLabels:
9-
app: {{ .Values.name }}
10+
app: {{ .Values.name }}
11+
{{- end }}

0 commit comments

Comments
 (0)