mirror of
https://github.com/bitnami/charts.git
synced 2026-03-05 06:47:25 +08:00
* [bitnami/postgresql-ha] Add standard Bitnami parameters * Extend the use of common * Lint issues * Lint
25 lines
954 B
YAML
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 }}
|