Files
homelab/bin/dryrun-app.sh
T
2023-03-14 22:23:51 +00:00

19 lines
424 B
Bash
Executable File

#!/bin/bash
set -e
full_path=${1}
deployment=${2:-dev}
app=$(basename $full_path)
location=$(dirname $full_path)
tmp_path=$(realpath ".tmp/$location/$deployment-$app.yaml")
echo "writing $location/$app to $tmp_path"
mkdir -p $(dirname $tmp_path)
pushd $full_path
helm dependency update
helm template $app . --namespace $app \
--debug \
--values values.yaml \
--values values-$deployment.yaml \
> $tmp_path