diff --git a/charts/cluster/templates/cluster.yaml b/charts/cluster/templates/cluster.yaml index 4c40a12d0..9634dc8f0 100644 --- a/charts/cluster/templates/cluster.yaml +++ b/charts/cluster/templates/cluster.yaml @@ -43,8 +43,10 @@ spec: {{- toYaml . | nindent 4 }} {{ end }} enableSuperuserAccess: {{ .Values.cluster.enableSuperuserAccess }} - superuserSecret: {{ .Values.cluster.superuserSecret }} - + {{- with .Values.cluster.superuserSecret }} + superuserSecret: + name: {{ . }} + {{ end }} postgresql: shared_preload_libraries: {{- if eq .Values.type "timescaledb" }}