diff --git a/src/helm/reflector/templates/poddisruptionbudget.yaml b/src/helm/reflector/templates/poddisruptionbudget.yaml new file mode 100644 index 0000000..2b65c40 --- /dev/null +++ b/src/helm/reflector/templates/poddisruptionbudget.yaml @@ -0,0 +1,18 @@ +{{- if .Values.podDisruptionBudget.enabled }} +--- +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: {{ include "reflector.fullname" . }} + namespace: {{ include "reflector.namespace" . }} + labels: + {{- include "reflector.labels" . | nindent 4 }} + +spec: + selector: + matchLabels: + {{- include "reflector.selectorLabels" . | nindent 6 }} + {{- with .Values.podDisruptionBudget.spec }} + {{- toYaml . | nindent 2 }} + {{- end }} +{{- end }} diff --git a/src/helm/reflector/values.yaml b/src/helm/reflector/values.yaml index bb5cbc9..33feea8 100644 --- a/src/helm/reflector/values.yaml +++ b/src/helm/reflector/values.yaml @@ -121,6 +121,12 @@ topologySpreadConstraints: [] priorityClassName: "" +podDisruptionBudget: + enabled: false + # Options passed directly to the PodDisruptionBudget spec. + spec: + minAvailable: 1 + volumes: [] -volumeMounts: [] \ No newline at end of file +volumeMounts: []