From 8ce01df681a5a3347e5b8e2277fc3acaf043b21e Mon Sep 17 00:00:00 2001 From: Dominik Kaminski Date: Fri, 28 Jul 2023 05:08:48 +0000 Subject: [PATCH] fix(helmfile): Allow selection of environments when installing from root helmfile --- README.md | 2 +- helmfile.yaml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 48bbd77c..2a9273f1 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ In any case we love to get feedback from you! Related to the deployment / conten If you want to address other topics, please check the section ["Rückmeldungen und Beteiligung" of the Infos' project OVERVIEW.md](https://gitlab.opencode.de/bmi/souveraener_arbeitsplatz/info/-/blob/main/OVERVIEW.md#rückmeldungen-und-beteiligung). -The first release of the SWP is scheduled for December 2023. +The first release of the SWP is scheduled for December 2023. Before that release there will be breaking changes in the deployment. # The Sovereign Workplace (SWP) diff --git a/helmfile.yaml b/helmfile.yaml index 8e9a59c5..f4b9780d 100644 --- a/helmfile.yaml +++ b/helmfile.yaml @@ -22,4 +22,22 @@ helmfiles: missingFileHandler: "Error" +# Environment is defined here and in helmfile/bases/environments.yaml +# This is a temporary solution to solve issue with different (relative) paths required when +# - Installing all releases from root via helmfile apply +# - Installing a single release from root via helmfile apply -f helmfile/apps//helmfile.yaml +# - Installing a single release from app directory via helmfile apply +# Issue: https://gitlab.opencode.de/bmi/souveraener_arbeitsplatz/deployment/sovereign-workplace/-/issues/2 +environments: + default: + values: + - "helmfile/environments/default/*.gotmpl" + dev: + values: + - "helmfile/environments/default/*.gotmpl" + - "helmfile/environments/dev/values.yaml" + prod: + values: + - "helmfile/environments/default/*.gotmpl" + - "helmfile/environments/prod/values.yaml" ...