mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-24 12:36:23 +10:00
* [bitnami/postgresql-ha] Add standard Bitnami parameters * Extend the use of common * Lint issues * Lint
25 lines
986 B
YAML
25 lines
986 B
YAML
{{- if .Values.postgresql.pdb.create }}
|
|
apiVersion: policy/v1beta1
|
|
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 }}
|