#!/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" # operators for component in openbao external-secrets secrets-store-csi-driver; do mkdir -p ../k8s/operators/${component} echo "${header}" > ../k8s/operators/${component}/bundle.yaml rm -rf "${component}/charts" # it doesn't seem to update them otherwise kubectl kustomize --enable-helm ${component}/ >> ../k8s/operators/${component}/bundle.yaml done