PodDisruptionBudget spec logic update (#9904)
Signed-off-by: Peter Jakubis <balonik32@gmail.com>
This commit is contained in:
parent
61ae861e81
commit
df0be089d2
3 changed files with 5 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ spec:
|
|||
matchLabels:
|
||||
{{- include "ingress-nginx.selectorLabels" . | nindent 6 }}
|
||||
app.kubernetes.io/component: controller
|
||||
{{- if .Values.controller.minAvailable }}
|
||||
{{- if and .Values.controller.minAvailable (not (hasKey .Values.controller "maxUnavailable")) }}
|
||||
minAvailable: {{ .Values.controller.minAvailable }}
|
||||
{{- else if .Values.controller.maxUnavailable }}
|
||||
maxUnavailable: {{ .Values.controller.maxUnavailable }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue