123456789101112131415161718 |
- {{- if .Values.podDisruptionBudget -}}
- apiVersion: policy/v1beta1
- kind: PodDisruptionBudget
- metadata:
- name: {{ template "docker-registry.fullname" . }}
- namespace: {{ .Values.namespace | default .Release.Namespace }}
- 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 -}}
|