mirror of
https://github.com/bitnami/charts.git
synced 2026-02-27 15:37:06 +08:00
Add templating for pgpool secrets (#25022)
Signed-off-by: Ben Shaner <ben@benshaner.com>
This commit is contained in:
@@ -40,4 +40,4 @@ maintainers:
|
||||
name: postgresql-ha
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/postgresql-ha
|
||||
version: 14.0.2
|
||||
version: 14.0.3
|
||||
|
||||
@@ -373,20 +373,20 @@ Return the Pgpool credentials secret.
|
||||
{{- if .Values.global -}}
|
||||
{{- if .Values.global.pgpool -}}
|
||||
{{- if .Values.global.pgpool.existingSecret -}}
|
||||
{{- printf "%s" .Values.global.pgpool.existingSecret -}}
|
||||
{{- printf "%s" (tpl .Values.global.pgpool.existingSecret $) -}}
|
||||
{{- else if .Values.pgpool.existingSecret -}}
|
||||
{{- printf "%s" .Values.pgpool.existingSecret -}}
|
||||
{{- printf "%s" (tpl .Values.pgpool.existingSecret $) -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s" (include "postgresql-ha.pgpool" .) -}}
|
||||
{{- end -}}
|
||||
{{- else if .Values.pgpool.existingSecret -}}
|
||||
{{- printf "%s" .Values.pgpool.existingSecret -}}
|
||||
{{- printf "%s" (tpl .Values.pgpool.existingSecret $) -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s" (include "postgresql-ha.pgpool" .) -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- if .Values.pgpool.existingSecret -}}
|
||||
{{- printf "%s" .Values.pgpool.existingSecret -}}
|
||||
{{- printf "%s" (tpl .Values.pgpool.existingSecret $) -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s" (include "postgresql-ha.pgpool" .) -}}
|
||||
{{- end -}}
|
||||
@@ -658,7 +658,7 @@ Return the path to the CA cert file.
|
||||
{{- if .Values.pgpool.tls.autoGenerated }}
|
||||
{{- printf "%s-crt" (include "postgresql-ha.pgpool" .) -}}
|
||||
{{- else -}}
|
||||
{{ required "A secret containing TLS certificates is required when TLS is enabled" .Values.pgpool.tls.certificatesSecret }}
|
||||
{{ required "A secret containing TLS certificates is required when TLS is enabled" (tpl .Values.pgpool.tls.certificatesSecret $) }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -637,7 +637,7 @@ spec:
|
||||
{{- if .Values.postgresql.tls.enabled }}
|
||||
- name: raw-certificates
|
||||
secret:
|
||||
secretName: {{ required "A secret containing TLS certificates is required when TLS is enabled" .Values.postgresql.tls.certificatesSecret }}
|
||||
secretName: {{ required "A secret containing TLS certificates is required when TLS is enabled" (tpl .Values.postgresql.tls.certificatesSecret .) }}
|
||||
- name: postgresql-certificates
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
|
||||
@@ -592,7 +592,7 @@ spec:
|
||||
{{- if .Values.postgresql.tls.enabled }}
|
||||
- name: raw-certificates
|
||||
secret:
|
||||
secretName: {{ required "A secret containing TLS certificates is required when TLS is enabled" .Values.postgresql.tls.certificatesSecret }}
|
||||
secretName: {{ required "A secret containing TLS certificates is required when TLS is enabled" (tpl .Values.postgresql.tls.certificatesSecret .) }}
|
||||
- name: postgresql-certificates
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user