From 93760255f83209d09436bb3974d24fe328599b3a Mon Sep 17 00:00:00 2001 From: Vasil Sudakou Date: Thu, 15 May 2025 11:09:38 +0300 Subject: [PATCH 1/3] fix: mongodb indexes docs --- codefresh/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/codefresh/README.md b/codefresh/README.md index 2159cd66a..3af453e0b 100644 --- a/codefresh/README.md +++ b/codefresh/README.md @@ -9,6 +9,7 @@ Helm chart for deploying [Codefresh On-Premises](https://codefresh.io/docs/docs/ - [Prerequisites](#prerequisites) - [Get Repo Info](#get-repo-info) - [Install Chart](#install-chart) +- [Post-installation steps](#post-installation-steps) - [Chart Configuration](#chart-configuration) - [Persistent services](#persistent-services) - [Configuring external services](#configuring-external-services) @@ -117,6 +118,15 @@ global: # key: firebase-secret ``` +- Specify `.Values.global.env.MONGO_AUTOMATIC_INDEX_CREATION` and `.Values.global.env.MONGO_AUTOMATIC_INDEX_CREATION` + +```yaml +global: + env: + MONGO_AUTOMATIC_INDEX_CREATION: "true" + MONGOOSE_AUTO_INDEX: "true" +``` + - Specify `.Values.ingress.tls.cert` and `.Values.ingress.tls.key` OR `.Values.ingress.tls.existingSecret` ```yaml @@ -170,6 +180,17 @@ ingress-nginx: --timeout 15m ``` +## Post-installation steps + +- Disable auto-creation of MongoDB indexes: + +```yaml +global: + env: + MONGO_AUTOMATIC_INDEX_CREATION: "false" + MONGOOSE_AUTO_INDEX: "false" +``` + ## Chart Configuration See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments, visit the chart's [values.yaml](./values.yaml), or run these configuration commands: From 0932fbbcc73c26c308d6c364106473b1ebf236e7 Mon Sep 17 00:00:00 2001 From: Vasil Sudakou Date: Thu, 15 May 2025 11:35:55 +0300 Subject: [PATCH 2/3] fix: mongodb indexes docs --- codefresh/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh/README.md b/codefresh/README.md index 3af453e0b..04c1bd105 100644 --- a/codefresh/README.md +++ b/codefresh/README.md @@ -182,7 +182,7 @@ ingress-nginx: ## Post-installation steps -- Disable auto-creation of MongoDB indexes: +- Disable auto-creation of MongoDB indexes (or remove these values from `.Values`): ```yaml global: From 2b6df4c68d4b236bbc47b198083c2ee8393ef035 Mon Sep 17 00:00:00 2001 From: Vasil Sudakou Date: Mon, 19 May 2025 17:08:30 +0300 Subject: [PATCH 3/3] fix: mongodb indexes docs --- codefresh/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codefresh/README.md b/codefresh/README.md index 04c1bd105..bc30bddc0 100644 --- a/codefresh/README.md +++ b/codefresh/README.md @@ -182,7 +182,7 @@ ingress-nginx: ## Post-installation steps -- Disable auto-creation of MongoDB indexes (or remove these values from `.Values`): +- Before moving to production, MongoDB indexes auto-creation must be disabled by either setting the appropriate values to `false` or removing those properties from `.Values` file: ```yaml global: