mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-17 17:16:30 +10:00
25 lines
1.0 KiB
YAML
25 lines
1.0 KiB
YAML
{{- if .Values.postgresql.pdb.create }}
|
|
apiVersion: {{ include "common.capabilities.policy.apiVersion" . }}
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ include "postgresql-ha.postgresql" . }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
app.kubernetes.io/component: postgresql
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.postgresql.pdb.minAvailable }}
|
|
minAvailable: {{ .Values.postgresql.pdb.minAvailable }}
|
|
{{- end }}
|
|
{{- if .Values.postgresql.pdb.maxUnavailable }}
|
|
maxUnavailable: {{ .Values.postgresql.pdb.maxUnavailable }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
|
|
app.kubernetes.io/component: postgresql
|
|
{{- end }}
|