Files
charts/bitnami/postgresql-ha/templates/pgpool/pdb.yaml
Javier J. Salmerón-García 8ee923ce98 [bitnami/postgresql-ha] Add standard Bitnami parameters (#3797)
* [bitnami/postgresql-ha] Add standard Bitnami parameters

* Extend the use of common

* Lint issues

* Lint
2020-10-08 10:24:41 +02:00

25 lines
954 B
YAML

{{- if .Values.pgpool.pdb.create }}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ include "postgresql-ha.pgpool" . }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: pgpool
{{- 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.pgpool.pdb.minAvailable }}
minAvailable: {{ .Values.pgpool.pdb.minAvailable }}
{{- end }}
{{- if .Values.pgpool.pdb.maxUnavailable }}
maxUnavailable: {{ .Values.pgpool.pdb.maxUnavailable }}
{{- end }}
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
app.kubernetes.io/component: pgpool
{{- end }}