wip: misc helmfile improvements
This commit is contained in:
+7
-2
@@ -1,8 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -f base/kustomization.yaml ]; then
|
||||
[ $# != 1 ] && exit 1
|
||||
[ ! -f base/kustomization.yaml ] && exit 1
|
||||
|
||||
env=$1
|
||||
|
||||
if [ -f $env/kustomization.yaml ]; then
|
||||
cat >base/_manifest.yaml
|
||||
kubectl kustomize base
|
||||
kubectl kustomize $env
|
||||
else
|
||||
cat
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user