mirror of
https://github.com/stakater/Reloader.git
synced 2026-08-27 14:37:17 +00:00
This improves the compatibility and makes it easier to work with various tools, which take advantake from the assumption of existence of those labels. Keep the old labels for selectors for backward compatibility. Also note there is slight change in behaviour of PDB which might be backward-incompatible in some rare cases.
18 lines
687 B
YAML
18 lines
687 B
YAML
{{- if .Values.reloader.podDisruptionBudget.enabled }}
|
|
apiVersion: policy/v1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ template "reloader-fullname" . }}
|
|
namespace: {{ .Values.namespace | default .Release.Namespace }}
|
|
spec:
|
|
{{- if .Values.reloader.podDisruptionBudget.maxUnavailable }}
|
|
maxUnavailable: {{ .Values.reloader.podDisruptionBudget.maxUnavailable }}
|
|
{{- end }}
|
|
{{- if and .Values.reloader.podDisruptionBudget.minAvailable (not .Values.reloader.podDisruptionBudget.maxUnavailable)}}
|
|
minAvailable: {{ .Values.reloader.podDisruptionBudget.minAvailable }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{ include "reloader-match-labels.chart" . | nindent 6 }}
|
|
{{- end }}
|