20 lines
555 B
YAML
20 lines
555 B
YAML
|
{{- if .Values.podDisruptionBudget.enabled }}
|
||
|
apiVersion: policy/v1
|
||
|
kind: PodDisruptionBudget
|
||
|
metadata:
|
||
|
name: {{ include "eck-operator.fullname" . }}
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
{{- include "eck-operator.labels" . | indent 4 }}
|
||
|
spec:
|
||
|
{{- with .Values.podDisruptionBudget.minAvailable }}
|
||
|
minAvailable: {{ . }}
|
||
|
{{- end }}
|
||
|
{{- with .Values.podDisruptionBudget.maxUnavailable }}
|
||
|
maxUnavailable: {{ . }}
|
||
|
{{- end }}
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
{{- include "eck-operator.selectorLabels" . | indent 6 }}
|
||
|
{{- end -}}
|