18 lines
536 B
YAML
18 lines
536 B
YAML
|
{{- if .Values.podDisruptionBudget -}}
|
||
|
apiVersion: policy/v1beta1
|
||
|
kind: PodDisruptionBudget
|
||
|
metadata:
|
||
|
name: {{ template "docker-registry.fullname" . }}
|
||
|
labels:
|
||
|
app: {{ template "docker-registry.name" . }}
|
||
|
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||
|
release: {{ .Release.Name }}
|
||
|
heritage: {{ .Release.Service }}
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: {{ template "docker-registry.name" . }}
|
||
|
release: {{ .Release.Name }}
|
||
|
{{ toYaml .Values.podDisruptionBudget | indent 2 }}
|
||
|
{{- end -}}
|