From ae37d80891c79dd3fe2efefa10a7f4a0cf7c912d Mon Sep 17 00:00:00 2001 From: JesseBot Date: Thu, 7 Sep 2023 19:55:21 +0200 Subject: [PATCH 1/3] Update values.yaml - add mongodb.auth.existingSecret parameter --- helm-charts/infisical/values.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helm-charts/infisical/values.yaml b/helm-charts/infisical/values.yaml index 1ffbc318f..03454f565 100644 --- a/helm-charts/infisical/values.yaml +++ b/helm-charts/infisical/values.yaml @@ -269,6 +269,12 @@ mongodb: ## @param mongodb.auth.rootPassword Database root user password ## rootPassword: root + + ## @param auth.existingSecret Existing secret with MongoDB(®) credentials (keys: `mongodb-passwords`, `mongodb-root-password`, `mongodb-metrics-password`, `mongodb-replica-set-key`) + ## NOTE: When it's set the previous parameters are ignored. + ## + existingSecret: "" + ## MongoDB persistence configuration ## persistence: From 6c126606da8f23215fec11984fd6d8addaedb390 Mon Sep 17 00:00:00 2001 From: JesseBot Date: Thu, 7 Sep 2023 20:02:15 +0200 Subject: [PATCH 2/3] Update README.md for helm chart parameters to include mongodb.auth.existingSecret --- helm-charts/infisical/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helm-charts/infisical/README.md b/helm-charts/infisical/README.md index de001d4f7..ee0a3b9cd 100644 --- a/helm-charts/infisical/README.md +++ b/helm-charts/infisical/README.md @@ -147,6 +147,7 @@ kubectl get secrets -n \ | `mongodb.auth.databases` | Custom databases list ([special characters warning](https://www.mongodb.com/docs/manual/reference/connection-string/#standard-connection-string-format)) | `["infisical"]` | | `mongodb.auth.rootUser` | Database root user name | `root` | | `mongodb.auth.rootPassword` | Database root user password | `root` | +| `mongodb.auth.existingSecret` | Existing secret with MongoDB(®) credentials (keys: `mongodb-passwords`, `mongodb-root-password`, `mongodb-metrics-password`, `mongodb-replica-set-key`) | `""` | | `mongodb.persistence.enabled` | Enable database persistence | `true` | | `mongodb.persistence.existingClaim` | Existing persistent volume claim name | `""` | | `mongodb.persistence.resourcePolicy` | Keep the persistent volume even on deletion (`keep` or `""`) | `keep` | @@ -341,4 +342,4 @@ for component in $components; do -o jsonpath='{.spec.template.spec.containers[0].env[*]}' | \ jq -r '.name + ":" + .value' > infisical-$component-conf.bak done -``` \ No newline at end of file +``` From e37810f30275e0a5592913045f61d42a496965d0 Mon Sep 17 00:00:00 2001 From: JesseBot Date: Fri, 8 Sep 2023 18:52:16 +0200 Subject: [PATCH 3/3] Update Chart.yaml - bump helm chart version after adding mongodb.auth.existingSecret parameter to values.yaml --- helm-charts/infisical/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-charts/infisical/Chart.yaml b/helm-charts/infisical/Chart.yaml index 5f3684346..5964553df 100644 --- a/helm-charts/infisical/Chart.yaml +++ b/helm-charts/infisical/Chart.yaml @@ -7,7 +7,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.2 +version: 0.3.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to