Skip to content

Commit

Permalink
E2E tests - [DO NOT MERGE]
Browse files Browse the repository at this point in the history
  • Loading branch information
slysunkin committed Nov 18, 2024
1 parent 61066b1 commit 2f35fae
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ set-hmc-version: yq
$(YQ) eval '.spec.version = "$(VERSION)"' -i $(PROVIDER_TEMPLATES_DIR)/hmc-templates/files/release.yaml
$(YQ) eval '.metadata.name = "hmc-$(FQDN_VERSION)"' -i $(PROVIDER_TEMPLATES_DIR)/hmc-templates/files/release.yaml
$(YQ) eval '.spec.hmc.template = "hmc-$(FQDN_VERSION)"' -i $(PROVIDER_TEMPLATES_DIR)/hmc-templates/files/release.yaml
@TEMPLATE_DIR=$(PROVIDER_TEMPLATES_DIR)/hmc-templates/files/templates/*; \
cutversion=$$(echo $(VERSION) | sed "s/.*-//g"); \
for template in $$TEMPLATE_DIR; do \
if [ $$(yq eval '.kind' $$template) = 'ClusterTemplate' ]; then \
echo $$template; \
sed -i '' "s/chartVersion:.*[^$$cutversion].*/&-$$cutversion/g" "$$template"; \
fi; \
done; \
CHART_DIR=$(TEMPLATES_DIR)/cluster/**/Chart.yaml; \
for chart in $$CHART_DIR; do \
echo $$chart; \
sed -i '' "s/version:.*[^$$cutversion]*./&-$$cutversion/g" "$$chart"; \
done

.PHONY: hmc-chart-release
hmc-chart-release: set-hmc-version templates-generate ## Generate hmc helm chart
Expand Down

0 comments on commit 2f35fae

Please sign in to comment.