From 92c144a38c5ead2df81006cf835ccb25874f83bb Mon Sep 17 00:00:00 2001 From: Aaron Walker <2865898-walkafwalka@users.noreply.gitlab.com> Date: Sun, 17 Jan 2021 06:55:20 +0000 Subject: [PATCH] fix: only download bitnami chart if postgres is enabled --- src/bin/auto-deploy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/auto-deploy b/src/bin/auto-deploy index 3b4e9e8..48589df 100755 --- a/src/bin/auto-deploy +++ b/src/bin/auto-deploy @@ -62,7 +62,9 @@ function download_chart() { function add_chart_repositories() { helm repo add stable https://charts.helm.sh/stable # bitnami repository is used for in-cluster PostgreSQL installation. - helm repo add bitnami https://charts.bitnami.com/bitnami + if [[ "$POSTGRES_ENABLED" == "true" ]]; then + helm repo add bitnami https://charts.bitnami.com/bitnami + fi # Additionaly, users can specify their custom chart repository. add_custom_chart_repository } -- GitLab