Only create configmap for DB certificate if certificate is provided in helm chart (#999)

- otherwise, we should expect the configmap to already be in the namespace
This commit is contained in:
Iain Sproat
2022-09-09 11:10:46 +01:00
committed by GitHub
parent c0b86208c9
commit 9f9f1c381f
2 changed files with 2 additions and 3 deletions
@@ -1,4 +1,4 @@
{{ if .Values.db.useCertificate }}
{{ if ( and .Values.db.useCertificate .Values.db.certificate ) }}
apiVersion: v1
kind: ConfigMap
+1 -2
View File
@@ -117,8 +117,7 @@ db:
## @param db.maxConnectionsServer The number of connections to the Postgres database to provide in the connection pool
##
maxConnectionsServer: 4
## @param db.certificate The x509 public certificate for SSL connections to the Postgres database
## Use of this certificate requires db.useCertificate to be enabled and an appropriate value for db.PGSSLMODE provided.
## @param db.certificate The x509 public certificate for SSL connections to the Postgres database. Use of this certificate requires db.useCertificate to be enabled and an appropriate value for db.PGSSLMODE provided.
## The value must be formatted as a multi-line string. We recommend using the pipe-symbol and taking care to
## indent all lines of the value correctly.
## ref: https://helm.sh/docs/chart_template_guide/yaml_techniques/#strings-in-yaml