Skip to content

Commit d0887ed

Browse files
committed
added configuring of image tags
1 parent d007ded commit d0887ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,18 @@ helm-test: ## Template the charts.
288288

289289
.PHONY: helm-build
290290
helm-build: ## Package helm charts.
291+
yq eval -i '.gateway.image.tag = "${VERSION}"' deployment/charts/cluster-connect-gateway/values.yaml
292+
yq eval -i '.controller.image.tag = "${VERSION}"' deployment/charts/cluster-connect-gateway/values.yaml
293+
yq eval -i '.agent.image.tag = "${VERSION}"' deployment/charts/cluster-connect-gateway/values.yaml
291294
for d in $(HELM_DIRS); do \
292295
yq eval -i '.version = "${HELM_VERSION}"' $$d/Chart.yaml; \
293296
yq eval -i '.appVersion = "${VERSION}"' $$d/Chart.yaml; \
294297
yq eval -i '.annotations.revision = "${LABEL_REVISION}"' $$d/Chart.yaml; \
295298
yq eval -i '.annotations.created = "${LABEL_CREATED}"' $$d/Chart.yaml; \
296299
helm package --app-version=${VERSION} --version=${HELM_VERSION} --debug -u $$d; \
297300
done
301+
# revert the temporary changes done in charts
302+
git checkout deployment/charts/cluster-connect-gateway-crd/Chart.yaml deployment/charts/cluster-connect-gateway/Chart.yaml deployment/charts/cluster-connect-gateway/values.yaml
298303

299304
.PHONY: helm-push
300305
helm-push: ## Push helm charts.

0 commit comments

Comments
 (0)