Skip to content

Commit

Permalink
feat: ensure both conditions are not set for pdb
Browse files Browse the repository at this point in the history
  • Loading branch information
punit-kulal committed Jul 31, 2024
1 parent 566b8cc commit 4af085d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stable/app/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ spec:
{{- if .Values.pdb.maxUnavailable }}
maxUnavailable: {{ .Values.pdb.maxUnavailable }}
{{- end }}
{{- if not .Values.pdb.maxUnavailable }}
minAvailable: {{ .Values.pdb.minAvailable | default 0 }}
{{- end }}
selector:
matchLabels:
{{- include "app.selectorLabels" . | nindent 6 }}
Expand Down

0 comments on commit 4af085d

Please sign in to comment.