wip: use separate toplevel helmfile.d and values/

This commit is contained in:
2025-05-16 10:46:38 +02:00
parent 55c6bb5923
commit ddc95aad80
34 changed files with 404 additions and 151 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ manifests=${4:-manifests}
outdir=${5:-_manifests}
build() {
if [ ! -d "manifests" ]; then
if [ ! -d "$manifests" ]; then
echo "nothing to do here..." 1>&2
exit 0
fi
+5 -5
View File
@@ -1,13 +1,13 @@
#!/usr/bin/env bash
[ $# != 1 ] && exit 1
[ ! -f base/kustomization.yaml ] && exit 1
env=$1
dir=$1
base=$dir/../base
if [ -f $env/kustomization.yaml ]; then
cat >base/_manifest.yaml
kubectl kustomize $env
if [ -f $base/kustomization.yaml -a -f $dir/kustomization.yaml ]; then
cat > $base/_manifest.yaml
kubectl kustomize $dir
else
cat
fi