Files
manifests/argo/kustomize-helm-with-rewrite/init.sh
T
2024-06-05 10:16:00 +02:00

11 lines
250 B
Bash

#!/bin/sh
export HOME=/helm-working-dir
if [ -n "$PARAM_CHART" -a "$PARAM_CHART" != "." ]; then
helm show values $PARAM_CHART > values-chart.yaml
elif [ -f chart ]; then
CHART=$(cat chart)
helm show values $CHART > values-chart.yaml
fi