1bb720840d
Move most of helmfiles into temp to test only velero. File structure: ```bash / ├── helmfile.d/ # Helmfiles, *.yaml.gotmpl ├── charts/ # Our own charts, e.g `Atlantis` ├── values # Values for helmfiles │ ├── <chart> │ │ ├── values.yaml.gotmpl # Values to be templated in `values/` │ │ ├── kustomize # Kustomizations per environment │ │ ├── manifests # Raw manifests │ │ │ ├── <chart>.yaml # Argo App for bootstrap │ │ │ ├── dashboards # Grafana dashboards │ │ │ │ └── <chart>-metrics.yaml │ │ │ └── policies # Cilium and Kyverno policies │ │ │ ├── CiliumNetworkPolicy-allow-api-server.yaml │ │ │ └── KyvernoPolicy-regred-secret.yaml │ │ └── values # Values for each environment │ │ ├── <chart>-staging.yaml.gotmpl # Values for staging environment │ │ ├── <chart>-prod.yaml.gotmpl # Values for prod environment │ │ └── <chart>.yaml.gotmpl # Standard values for all environments │ │ │ ├── values.yaml # Standard values for all cluster │ ├── values-oceanbox.yaml # Values overrides for oceanbox │ ├── values-ekman.yaml # Values overrides for ekman ```
19 lines
548 B
Bash
19 lines
548 B
Bash
#!/bin/sh
|
|
|
|
# NOTE: Ensure errors are part of exitcode
|
|
# set -o pipefail
|
|
|
|
export HOME=/plugin
|
|
|
|
export HELM_CACHE_HOME=/tmp/helm/cache
|
|
export HELM_CONFIG_HOME=/tmp/helm/config
|
|
export HELMFILE_CACHE_HOME=/tmp/helmfile/cache
|
|
export HELMFILE_TEMPDIR=/tmp/helmfile/tmp
|
|
|
|
[[ -v ARGOCD_ENV_HELMFILE_ENVIRONMENT ]] && export HELMFILE_ENVIRONMENT=$ARGOCD_ENV_HELMFILE_ENVIRONMENT
|
|
|
|
env > /tmp/$ARGOCD_APP_NAME.env
|
|
|
|
# helmfile -n "$ARGOCD_APP_NAMESPACE" $ARGS template --include-crds -q
|
|
helmfile -n "$ARGOCD_APP_NAMESPACE" $ARGS template --include-crds --debug
|