helm: don't break on missing components
All checks were successful
/ render-helm (push) Successful in 28s

I have WIP stuff that goes uncommitted frequently enough that I think this is better than keeping the list accurate. Probably wouldn't feel that was in a multi-user environment
This commit is contained in:
Finn 2025-03-25 09:23:45 -07:00
parent fba90c0315
commit 1d5fca48c0

View file

@ -7,6 +7,12 @@ header="# DO NOT EDIT: This file has been automatically generated by the script
render_helm() {
target="${1}"
component="${2}"
if [ ! -d "${component}" ]; then
echo "skipping non-existant component ${component}"
return
fi
mkdir -p "${target}/${component}"
echo "${header}" > "${target}/${component}/bundle.yaml"
rm -rf "${component}/charts" # it doesn't seem to update them otherwise