infra/helm/render-all.sh

15 lines
575 B
Bash
Raw Permalink Normal View History

2024-08-20 18:13:23 +00:00
#!/bin/bash
set -exuo pipefail
cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"
2024-08-20 18:13:23 +00:00
header="# DO NOT EDIT: This file has been automatically generated by the script in helm/render-all.sh, edits may get overwritten"
2024-08-27 05:52:28 +00:00
# operators
for component in openbao external-secrets secrets-store-csi-driver; do
mkdir -p ../k8s/operators/${component}
2024-08-27 05:52:28 +00:00
echo "${header}" > ../k8s/operators/${component}/bundle.yaml
rm -rf "${component}/charts" # it doesn't seem to update them otherwise
2024-08-27 05:52:28 +00:00
kubectl kustomize --enable-helm ${component}/ >> ../k8s/operators/${component}/bundle.yaml
done