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:
@@ -1,4 +1,4 @@
|
||||
{{ if .Values.db.useCertificate }}
|
||||
{{ if ( and .Values.db.useCertificate .Values.db.certificate ) }}
|
||||
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user