wip: towards a helmfile based config scheme

This commit is contained in:
2025-05-13 16:08:16 +02:00
parent abba0999e2
commit aadc6cb305
22 changed files with 607 additions and 302 deletions
+7 -5
View File
@@ -8,11 +8,13 @@ export HELMFILE_TEMPDIR=/tmp/helmfile/tmp
env > /tmp/$ARGOCD_APP_NAME.env
if [[ -v ENV_NAME ]]; then
helmfile -n "$ARGOCD_APP_NAMESPACE" -e $ENV_NAME template --include-crds -q
elif [[ -v ARGOCD_ENV_ENV_NAME ]]; then
helmfile -n "$ARGOCD_APP_NAMESPACE" -e "$ARGOCD_ENV_ENV_NAME" template --include-crds -q
if [[ -v ENVIRONMENT ]]; then
ARGS="-e $ENVIRONMENT"
elif [[ -v ARGOCD_ENV_ENVIRONMENT ]]; then
ARGS="-e $ARGOCD_ENV_ENVIRONMENT "
else
helmfile -n "$ARGOCD_APP_NAMESPACE" template --include-crds -q
ARGS=""
fi
helmfile -n "$ARGOCD_APP_NAMESPACE" $ARGS template --include-crds -q