From 53db7d033fe3bf8627768e31d673f692a8796dfd Mon Sep 17 00:00:00 2001 From: ttinkr <34622932+ttinkr@users.noreply.github.com> Date: Tue, 21 Jul 2020 12:25:01 +0200 Subject: [PATCH] [bitnami/postgresql-ha] Conditional rendering of .Values.pgpool.priorityClassName (#2935) * Conditional rendering of .Values.pgpool.priorityClassName * Conditional rendering of .Values.postgresql.priorityClassName * Conditional rendering of .Values.postgresql.priorityClassName * Conditional rendering of .Values.postgresql.priorityClassName * Chart version bump Co-authored-by: ttinkr Co-authored-by: Jose Antonio Carmona --- bitnami/postgresql-ha/Chart.yaml | 2 +- bitnami/postgresql-ha/templates/pgpool/deployment.yaml | 2 ++ bitnami/postgresql-ha/templates/postgresql/statefulset.yaml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bitnami/postgresql-ha/Chart.yaml b/bitnami/postgresql-ha/Chart.yaml index eb5c263de..6fa0645b2 100644 --- a/bitnami/postgresql-ha/Chart.yaml +++ b/bitnami/postgresql-ha/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: postgresql-ha -version: 3.4.4 +version: 3.4.5 appVersion: 11.8.0 description: Chart for PostgreSQL with HA architecture (using Replication Manager (repmgr) and Pgpool). keywords: diff --git a/bitnami/postgresql-ha/templates/pgpool/deployment.yaml b/bitnami/postgresql-ha/templates/pgpool/deployment.yaml index 2bc1e25fe..75e407b13 100644 --- a/bitnami/postgresql-ha/templates/pgpool/deployment.yaml +++ b/bitnami/postgresql-ha/templates/pgpool/deployment.yaml @@ -36,7 +36,9 @@ spec: {{- if .Values.pgpool.nodeSelector }} nodeSelector: {{- include "postgresql-ha.tplValue" (dict "value" .Values.pgpool.nodeSelector "context" $) | nindent 8 }} {{- end }} + {{- if .Values.pgpool.priorityClassName }} priorityClassName: {{ .Values.pgpool.priorityClassName }} + {{- end }} {{- if .Values.pgpool.tolerations }} tolerations: {{- include "postgresql-ha.tplValue" (dict "value" .Values.pgpool.tolerations "context" $) | nindent 8 }} {{- end }} diff --git a/bitnami/postgresql-ha/templates/postgresql/statefulset.yaml b/bitnami/postgresql-ha/templates/postgresql/statefulset.yaml index 3b73a7789..940e798de 100644 --- a/bitnami/postgresql-ha/templates/postgresql/statefulset.yaml +++ b/bitnami/postgresql-ha/templates/postgresql/statefulset.yaml @@ -36,7 +36,9 @@ spec: {{- if .Values.postgresql.nodeSelector }} nodeSelector: {{- include "postgresql-ha.tplValue" (dict "value" .Values.postgresql.nodeSelector "context" $) | nindent 8 }} {{- end }} + {{- if .Values.postgresql.priorityClassName }} priorityClassName: {{ .Values.postgresql.priorityClassName }} + {{- end }} {{- if .Values.postgresql.tolerations }} tolerations: {{- include "postgresql-ha.tplValue" (dict "value" .Values.postgresql.tolerations "context" $) | nindent 8 }} {{- end }}