File tree 1 file changed +9
-4
lines changed
charts/cluster-autoscaler/templates
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
{{- if .Values.podDisruptionBudget -}}
2
- apiVersion : {{ template "podDisruptionBudget.apiVersion" . }}
2
+ {{- if and .Values.podDisruptionBudget.minAvailable .Values.podDisruptionBudget.maxUnavailable }}
3
+ {{- fail "Only one of podDisruptionBudget.minAvailable or podDisruptionBudget.maxUnavailable should be set." }}
4
+ {{- end }}apiVersion: {{ template "podDisruptionBudget.apiVersion" . }}
3
5
kind : PodDisruptionBudget
4
6
metadata :
5
7
labels :
10
12
selector :
11
13
matchLabels :
12
14
{{ include "cluster-autoscaler.instance-name" . | indent 6 }}
13
- {{- if .Values.podDisruptionBudget }}
14
- {{ toYaml .Values.podDisruptionBudget | nindent 2 }}
15
- {{- end }}
15
+ {{- if and .Values.podDisruptionBudget.minAvailable (not .Values.podDisruptionBudget.maxUnavailable) }}
16
+ minAvailable : {{ .Values.podDisruptionBudget.minAvailable }}
17
+ {{- end }}
18
+ {{- if and .Values.podDisruptionBudget.maxUnavailable (not .Values.podDisruptionBudget.minAvailable) }}
19
+ maxUnavailable : {{ .Values.podDisruptionBudget.maxUnavailable }}
20
+ {{- end }}
16
21
{{- end -}}
You can’t perform that action at this time.
0 commit comments