Files
manifests/bin/kustomizer
T

14 lines
207 B
Bash
Executable File

#!/usr/bin/env bash
[ $# != 1 ] && exit 1
[ ! -f base/kustomization.yaml ] && exit 1
env=$1
if [ -f $env/kustomization.yaml ]; then
cat >base/_manifest.yaml
kubectl kustomize $env
else
cat
fi