Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volcano automatically releases the corresponding helm charts package #2823

Merged

Conversation

wangyang0616
Copy link
Member

@wangyang0616 wangyang0616 commented May 11, 2023

Description of Requirement:

refer: #2766,

Volcano can be installed through helm at present, but you need to download the source code of the entire warehouse, the operation is relatively troublesome, and it does not conform to the standard usage of helm.

Target:
Build the helm repo corresponding to Volcano, and automatically publish helm charts.

Users can view the latest released packages through helm repo update, and install and use them through helm install

accomplish:

  1. Build the charts warehouse of Volcano, see helm-charts
  2. When the Volcano main warehouse releases the tag, the release version is pushed to the helm-charts warehouse, with the charts information attached, and the repo information is updated at the same time.
    (It is automatically completed through github action without manual intervention.)
  3. When the Volcano main warehouse publishes a tag, it pushes the image corresponding to the tag to dockerhub.
    (It is automatically completed through github action without manual intervention.)

Signed-off-by: wangyang <wangyang8126@gmail.com>
@volcano-sh-bot volcano-sh-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 11, 2023
@wangyang0616
Copy link
Member Author

/priority important-soon

@volcano-sh-bot volcano-sh-bot added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label May 15, 2023
Signed-off-by: wangyang <wangyang8126@gmail.com>
@wangyang0616 wangyang0616 force-pushed the feature_chart_release_action branch from 6492dd0 to 621f2c1 Compare May 15, 2023 03:49
CHART_ORIGIN_PATH=${VK_ROOT}/installer/helm/chart
CHART_OUT_PATH=${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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know, the sed command behaves inconsistently on linux and darwin, is there a way without using sed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, refer to: #2848

#!/bin/bash

#
# Copyright 2021 The Volcano Authors.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refresh the date

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, refer to: #2848

@william-wang
Copy link
Member

It's cool to generete the helm charts automatically :)

Copy link
Member

@william-wang william-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label May 23, 2023
@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: william-wang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 23, 2023
@volcano-sh-bot volcano-sh-bot merged commit fc419ef into volcano-sh:master May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants