wip: fix atlantis helmfiles et al.

This commit is contained in:
2025-05-17 09:54:16 +02:00
parent ee09bf74ac
commit 8ee21a4946
2 changed files with 5 additions and 12 deletions
+1 -6
View File
@@ -7,11 +7,6 @@ manifests=${4:-manifests}
outdir=${5:-_manifests} outdir=${5:-_manifests}
build() { build() {
if [ ! -e "$manifests" ]; then
echo "nothing to do here..." 1>&2
exit 0
fi
mkdir -p $outdir/templates mkdir -p $outdir/templates
echo "generating $outdir/Chart.yaml" 1>&2 echo "generating $outdir/Chart.yaml" 1>&2
@@ -26,7 +21,7 @@ EOF
if [ -d $manifests ]; then if [ -d $manifests ]; then
cp -r $manifests/* $outdir/templates cp -r $manifests/* $outdir/templates
else elif [ -f $manifests ]; then
cp $manifests $outdir/templates cp $manifests $outdir/templates
fi fi
} }
+4 -6
View File
@@ -1,17 +1,13 @@
bases: bases:
- ../envs/environments.yaml.gotmpl - ../envs/environments.yaml.gotmpl
repositories:
- name: atlantis
url: ../charts/atlantis
commonLabels: commonLabels:
tier: atlantis tier: atlantis
releases: releases:
- name: atlantis - name: atlantis
namespace: {{ .Environment.Name }}-atlantis namespace: {{ .Environment.Name }}-atlantis
chart: atlantis/atlantis chart: ../charts/atlantis
condition: atlantis.enabled condition: atlantis.enabled
values: values:
- ../values/atlantis/values/atlantis.yaml.gotmpl - ../values/atlantis/values/atlantis.yaml.gotmpl
@@ -24,6 +20,7 @@ releases:
namespace: {{ .Environment.Name }}-atlantis namespace: {{ .Environment.Name }}-atlantis
chart: _atlantis-manifests chart: _atlantis-manifests
condition: atlantis.enabled condition: atlantis.enabled
missingFileHandler: Info
values: values:
- ../values/values-{{ requiredEnv "CLUSTER_NAME" }}.yaml - ../values/values-{{ requiredEnv "CLUSTER_NAME" }}.yaml
- ../values/atlantis/values.yaml.gotmpl - ../values/atlantis/values.yaml.gotmpl
@@ -36,12 +33,13 @@ releases:
- '{{`{{ if eq .Event.Name "prepare" }}build{{ else }}clean{{ end }}`}}' - '{{`{{ if eq .Event.Name "prepare" }}build{{ else }}clean{{ end }}`}}'
- '{{`{{ .Release.Chart }}`}}' - '{{`{{ .Release.Chart }}`}}'
- '{{`{{ .Environment.Name }}`}}' - '{{`{{ .Environment.Name }}`}}'
- ../values/atlantis/atlantis-manifests - ../values/atlantis/manifests
- _atlantis-manifests - _atlantis-manifests
- name: atlantis-app - name: atlantis-app
namespace: argocd namespace: argocd
chart: _atlantis-app chart: _atlantis-app
condition: atlantis.enabled condition: atlantis.enabled
missingFileHandler: Info
values: values:
- ../values/values-{{ requiredEnv "CLUSTER_NAME" }}.yaml - ../values/values-{{ requiredEnv "CLUSTER_NAME" }}.yaml
- ../values/atlantis/values.yaml.gotmpl - ../values/atlantis/values.yaml.gotmpl