Skip to content

Commit

Permalink
Use helm package flag to set version in generate chart release
Browse files Browse the repository at this point in the history
Signed-off-by: Monokaix <[email protected]>
  • Loading branch information
Monokaix committed Aug 1, 2024
1 parent 0eddc99 commit 8e8e28f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hack/generate-charts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,5 @@ CHART_OUT_PATH=${RELEASE_FOLDER}/chart
rm -rf ${RELEASE_FOLDER}/chart
cp -r "${CHART_ORIGIN_PATH}" "${CHART_OUT_PATH}"
sed_i "s|image_tag_version: \"latest\"|image_tag_version: \"${VOLCANO_IMAGE_TAG}\"|g" $(find ${CHART_OUT_PATH} -type f | grep values.yaml)
sed_i "s|version: 1.5|version: ${VOLCANO_CHART_VERSION}|g" $(find ${CHART_OUT_PATH} -type f | grep Chart.yaml)
sed_i "s|appVersion: 0.1|appVersion: ${VOLCANO_CHART_VERSION}|g" $(find ${CHART_OUT_PATH} -type f | grep Chart.yaml)
helm package "${CHART_OUT_PATH}/volcano" -d "${CHART_OUT_PATH}"
helm package --version ${VOLCANO_CHART_VERSION} --app-version ${VOLCANO_IMAGE_TAG} "${CHART_OUT_PATH}/volcano" -d "${CHART_OUT_PATH}"
echo "helm package end, charts is in ${CHART_OUT_PATH}"

0 comments on commit 8e8e28f

Please sign in to comment.