File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
charts/cluster-autoscaler/templates Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 11{{- 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" . }}
35kind : PodDisruptionBudget
46metadata :
57 labels :
1012 selector :
1113 matchLabels :
1214{{ 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 }}
1621{{- end -}}
You can’t perform that action at this time.
0 commit comments