Skip to content

Commit

Permalink
chore: resolve requested changes
Browse files Browse the repository at this point in the history
Signed-off-by: mentlak <[email protected]>
  • Loading branch information
mentlak0 committed Nov 26, 2024
1 parent cac557a commit fa9abef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions charts/prometheus/templates/pdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ spec:
selector:
matchLabels:
{{- include "prometheus.server.matchLabels" . | nindent 6 }}
{{- if $pdbSpec.minAvailable }}
{{- if not (or (hasKey $pdbSpec "minAvailable") (hasKey $pdbSpec "maxUnavailable")) }}
maxUnavailable: 1
{{- end }}
{{- if hasKey $pdbSpec "minAvailable" }}
minAvailable: {{ $pdbSpec.minAvailable }}
{{- end }}
{{- if $pdbSpec.maxUnavailable }}
{{- if hasKey $pdbSpec "maxUnavailable" }}
maxUnavailable: {{ $pdbSpec.maxUnavailable }}
{{- end }}
{{- if hasKey $pdbSpec "unhealthyPodEvictionPolicy" }}
unhealthyPodEvictionPolicy: {{ $pdbSpec.unhealthyPodEvictionPolicy }}
{{- end }}}}
{{- end }}

0 comments on commit fa9abef

Please sign in to comment.