infra/helm/render-all.sh
Finn 1d5fca48c0
All checks were successful
/ render-helm (push) Successful in 28s
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
2025-03-25 09:23:45 -07:00

30 lines
1,012 B
Bash
Executable file

#!/bin/bash
set -exuo pipefail
cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"
header="# DO NOT EDIT: This file has been automatically generated by the script in helm/render-all.sh, edits may get overwritten"
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
kubectl kustomize --enable-helm "${component}/" >> "${target}/${component}/bundle.yaml"
}
# main k8s cluster operators
for component in openbao external-secrets secrets-store-csi-driver ceph-csi-cephfs cert-manager-webhook-pdns; do
render_helm ../k8s/operators "${component}"
done
# cisco k8s cluster operators
for component in rook cert-manager-webhook-pdns traefik metrics-server; do
render_helm ../talos/k8s/operators "${component}"
done