From 1d5fca48c04cc69b2b1acf4413471d503231a3f8 Mon Sep 17 00:00:00 2001 From: Finn Date: Tue, 25 Mar 2025 09:23:45 -0700 Subject: [PATCH] helm: don't break on missing components 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 --- helm/render-all.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helm/render-all.sh b/helm/render-all.sh index 31d185a..5b2edfb 100755 --- a/helm/render-all.sh +++ b/helm/render-all.sh @@ -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