Skip to content

Commit

Permalink
check diff before update chart
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnleelhl committed Dec 19, 2023
1 parent 5df7e8a commit 4a4a1f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,13 @@ ifeq ($(VERSION), latest)
else
$(HELM) package addons/addons/$(chart) --version $(VERSION)
endif
mv $(chart)-*.tgz pkg/cluster/charts/$(chart).tgz
- bash -c "diff <($(HELM) template $(chart)-*.tgz) <($(HELM) template pkg/cluster/charts/$(chart).tgz)" > chart.diff
@if [ -s chart.diff ]; then \
mv $(chart)-*.tgz pkg/cluster/charts/$(chart).tgz; \
else \
rm $(chart)-*.tgz; \
fi
rm chart.diff

.PHONY: build-kbcli-embed-chart
build-kbcli-embed-chart: helmtool fetch-addons create-kbcli-embed-charts-dir \
Expand Down

0 comments on commit 4a4a1f3

Please sign in to comment.