@@ -17,12 +17,12 @@ CHART_NAME := $(if $(CHART_NAME),$(CHART_NAME),chart-name)
17
17
18
18
.PHONY : stable
19
19
stable : WORKDIR = stable
20
- stable : repo-helm update-req package-all index
20
+ stable : check-helm repo-helm update-req package-all index
21
21
@echo " Done"
22
22
23
23
.PHONY : stable-specific
24
24
stable-specific : WORKDIR = stable
25
- stable-specific : repo-helm update-req-specific package-specific index
25
+ stable-specific : check-helm repo-helm update-req-specific package-specific index
26
26
@echo " Done"
27
27
28
28
.PHONY : demo
@@ -51,7 +51,7 @@ cleanup-tmp-workspace:
51
51
@echo " Cleaned up /tmp/v3io-helm-charts"
52
52
53
53
.PHONY : helm-publish
54
- helm-publish : cleanup-tmp-workspace
54
+ helm-publish : check-helm cleanup-tmp-workspace
55
55
helm-publish :
56
56
@echo " Preparing to release a new index from $( GITHUB_BRANCH) "
57
57
@git clone
[email protected] :v3io/helm-charts /tmp/v3io-helm-charts
@@ -116,7 +116,7 @@ helm-publish-incubator-specific:
116
116
helm-publish-incubator-specific : cleanup-tmp-workspace
117
117
118
118
.PHONY : helm-publish-stable-specific
119
- helm-publish-stable-specific : cleanup-tmp-workspace
119
+ helm-publish-stable-specific : check-helm cleanup-tmp-workspace
120
120
helm-publish-stable-specific :
121
121
@echo " Preparing to release a new stable index for $( CHART_NAME) from $( GITHUB_BRANCH) "
122
122
@git clone
[email protected] :v3io/helm-charts /tmp/v3io-helm-charts
@@ -221,4 +221,9 @@ check-helm:
221
221
echo " Missing helm command" ; \
222
222
exit 2 ; \
223
223
fi
224
+ @HELM_VERSION=$$($(HELM ) version --short --client) && \
225
+ if [[ " $$ HELM_VERSION" != * " v2" * ]]; then \
226
+ echo " Helm version must be 2" ; \
227
+ exit 2 ; \
228
+ fi
224
229
@echo " Helm command exists"
0 commit comments