Skip to content

Commit

Permalink
remove the git checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewuolle committed Nov 19, 2024
1 parent b6addf2 commit 62d17b2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ set-hmc-version: yq
.PHONY: test-hmc-version
test-hmc-version: yq
@TEMPLATE_DIR=templates/provider/hmc-templates/files/templates/*; \
git checkout templates/cluster/; \
git checkout templates/provider/hmc-templates/files/templates/; \
cutversion=$$(echo $(VERSION) | sed "s/.*-//g"); \
for template in $$TEMPLATE_DIR; do \
if [ $$(yq eval '.kind' $$template) = 'ClusterTemplate' ]; then \
Expand All @@ -90,16 +88,6 @@ test-hmc-version: yq
sed -i "s/version:.*[^$$cutversion]*./&-$$cutversion/g" "$$chart"; \
done

#@RELEASE_FILE=templates/provider/hmc-templates/files/release.bak; \
#cutversion=$$(echo $(VERSION) | sed "s/.*-//g"); \
#for provider in $$(yq eval -o=json $$RELEASE_FILE | jq -cr '.spec.providers[].template'); do \
# if echo "$$provider" | grep -q -v "projectsveltos"; then \
# echo $$provider-$$cutversion; \
# sed -i "s/template:.*$$provider/&-$$cutversion/g" $$RELEASE_FILE; \
# fi; \
# done
#@VERSION=$(VERSION) hack/templateversions.sh

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

Expand Down

0 comments on commit 62d17b2

Please sign in to comment.