[bitnami/mongodb] fix variable assignment preventing certificate generation (#15079)

* fix variable assignment
* Update Chart.yaml
---------

Signed-off-by: Heiko Helmle <heiko.helmle@horiba.com>
Signed-off-by: Fran Mulero <fmulero@vmware.com>
Co-authored-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
horihel
2023-02-22 09:59:02 +01:00
committed by GitHub
parent d103602c85
commit 95873becd9
2 changed files with 2 additions and 2 deletions

View File

@@ -26,4 +26,4 @@ name: mongodb
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/mongodb
- https://mongodb.org
version: 13.8.0
version: 13.8.1

View File

@@ -25,7 +25,7 @@ data:
mongodb-ca-cert: {{ b64enc $ca.Cert }}
mongodb-ca-key: {{ b64enc $ca.Key }}
{{- else }}
{{- $ca = genCA "myMongo-ca" 3650 }}
{{- $ca := genCA "myMongo-ca" 3650 }}
mongodb-ca-cert: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "mongodb-ca-cert" "defaultValue" $ca.Cert "context" $) }}
mongodb-ca-key: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "mongodb-ca-key" "defaultValue" $ca.Key "context" $) }}
{{- end }}