File tree Expand file tree Collapse file tree
manifests/charts/cluster-operator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ sync-crds: gen-crd
109109
110110.PHONY : gen-chart
111111gen-chart : sync-crds
112- HELM_CHART_VERSION=$(HELM_CHART_VERSION ) hack/gen-chart.sh
112+ HELM_CHART_VERSION=$(HELM_CHART_VERSION ) IMAGE_TAG= $( IMAGE_TAG ) hack/gen-chart.sh
113113
114114.PHONY : test
115115test : clean tidy
Original file line number Diff line number Diff line change @@ -30,13 +30,14 @@ MAINIFESTS_CHART_PATH=${REPO_ROOT}/manifests/charts
3030HELM_CHARTS=(base cluster-operator)
3131HELM_CHART_VERSION=${HELM_CHART_VERSION:- " 0.1.0" }
3232IMAGE_HUB=${IMAGE_HUB:- " ghcr.io/kurator-dev" }
33+ IMAGE_TAG=${IMAGE_TAG:- " latest" }
3334
3435for c in " ${HELM_CHARTS[@]} "
3536do
3637 echo " gen chart $c "
3738 cp -r " ${MAINIFESTS_CHART_PATH} /${c} " " ${CHART_OUT_PATH} /${c} "
3839 sed -i " s|hub: ghcr.io/kurator-dev|hub: ${IMAGE_HUB} |g" $( find ${CHART_OUT_PATH} /${HELM_CHART_NAME} -type f | grep values.yaml)
39- sed -i " s|tag: latest|tag: ${IMAGE_VERSION } |g" $( find ${CHART_OUT_PATH} /${HELM_CHART_NAME} -type f | grep values.yaml)
40+ sed -i " s|tag: latest|tag: ${IMAGE_TAG } |g" $( find ${CHART_OUT_PATH} /${HELM_CHART_NAME} -type f | grep values.yaml)
4041 sed -i " s|version: 0.1.0|version: ${HELM_CHART_VERSION} |g" $( find ${CHART_OUT_PATH} /${HELM_CHART_NAME} -type f | grep Chart.yaml)
4142 helm package " ${CHART_OUT_PATH} /${c} " -d " ${CHART_OUT_PATH} "
4243done
Original file line number Diff line number Diff line change 44 hub : ghcr.io/kurator-dev
55 pullPolicy : IfNotPresent
66 # Overrides the image tag whose default is the chart appVersion.
7- tag : " latest"
7+ tag : latest
88
99logging :
1010 level : 0
You can’t perform that action at this time.
0 commit comments