From 670b6e600cc7aaa4f8f4042100824abf26b94d18 Mon Sep 17 00:00:00 2001 From: alexlebens Date: Mon, 1 Jul 2024 18:08:13 -0500 Subject: [PATCH] add conditional check for values --- charts/postgres-cluster/Chart.yaml | 2 +- charts/postgres-cluster/templates/cluster.yaml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/charts/postgres-cluster/Chart.yaml b/charts/postgres-cluster/Chart.yaml index 693a86a..46dc69c 100644 --- a/charts/postgres-cluster/Chart.yaml +++ b/charts/postgres-cluster/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: postgres-cluster -version: 3.7.0 +version: 3.8.0 description: Chart for cloudnative-pg cluster keywords: - database diff --git a/charts/postgres-cluster/templates/cluster.yaml b/charts/postgres-cluster/templates/cluster.yaml index 20969a9..408c461 100644 --- a/charts/postgres-cluster/templates/cluster.yaml +++ b/charts/postgres-cluster/templates/cluster.yaml @@ -32,15 +32,17 @@ spec: affinity: {{- toYaml . | nindent 4 }} {{- end }} + {{- if .Values.cluster.priorityClassName }} priorityClassName: {{ .Values.cluster.priorityClassName }} + {{- end }} primaryUpdateMethod: {{ .Values.cluster.primaryUpdateMethod }} primaryUpdateStrategy: {{ .Values.cluster.primaryUpdateStrategy }} logLevel: {{ .Values.cluster.logLevel }} postgresql: + {{- if eq .Values.type "timescaledb" }} shared_preload_libraries: - {{- if eq .Values.type "timescaledb" }} - timescaledb - {{- end }} + {{- end }} {{- with .Values.cluster.postgresql.parameters }} parameters: {{- toYaml . | nindent 6 }}