wip: use separate toplevel helmfile.d and values/
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user