Generate CRD and RBAC yaml templates from submariner-operator

The submariner-operator repo is the source of truth for the
CRD and RBAC resource yaml used by subctl and the ACM add-on so
we should use it for the helm charts as well. This will avoid
having to duplicate changes from the submariner-operator repo.
All the yaml is assembled in the pkg/embeddedyamls/yamls.go file
in submariner-operator so download and extract the yaml into
template files in the chart templates directories which can then
be included in other manifest files.

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
This commit is contained in:
Tom Pantelis
2025-01-21 22:59:29 -05:00
committed by Thomas Pantelis
parent 4967ab1b72
commit 028400610b
12 changed files with 115 additions and 2746 deletions
+4 -1
View File
@@ -34,7 +34,10 @@ local-helm-repo: $(CHART_PACKAGES)
e2e: local-helm-repo
$(SCRIPTS_DIR)/e2e.sh
%.tgz:
generate-yamls:
./generate-yamls.sh $(BASE_BRANCH)
%.tgz: generate-yamls
helm dep update $(subst -$(CHARTS_VERSION),,$(basename $(@F)))
helm package --version $(CHARTS_VERSION) --app-version $(CHARTS_VERSION) $(subst -$(CHARTS_VERSION),,$(basename $(@F)))