wip: use separate toplevel helmfile.d and values/
This commit is contained in:
+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