dev: Update and test Rancher v2.5 Chart - shuo-wu/longhorn GitHub Wiki
Update Rancher v2.5 Chart for Longhorn new release
rancher/image-mirror
Update repo -
Add new Longhorn images in file
images-list
and sort them lexicographically. -
Do not remove the existing/old Longhorn images.
rancher/charts
Update repo - Switch to branch
origin/dev-v2.5-source
- Make the new Longhorn Chart files for Rancher v2.5 ready in advance, and save them in a separate directory. There are 2 ways to prepare the chart files:
- Directly run
make CHART=longhorn prepare
to fetch the current (the old version) Longhorn Chart. Modify the current chart for the new release. - Update the fields
commit
(the commit of Longhorn chart new release) andpackageVersion
(this field should be reset to00
for each new Longhorn version release) inpackages/longhorn/package.yaml
first. Then Runmake CHART=longhorn prepare
and solve the conflicts.
- Directly run
- Run
make CHART=longhorn clean
to do cleanup first. Then runmake CHART=longhorn prepare
to fetch the current Longhorn Chart. - Override
packages/longhorn/charts
with the new chart files prepared in step1. Then update the CRD sub-chartpackages/longhorn/charts-crds
. - Modify the fields
commit
andpackageVersion
(reset the version to00
for each new Longhorn version release) inpackages/longhorn/package.yaml
, and update the roles in the directorypackages/longhorn/overlay/
if necessary. - Run
make CHART=longhorn patch
to update the patch file. - Run
make CHART=longhorn clean
to remove the chart. In the final PR commit, there should be only 3 components inpackages/longhorn
: filepackages/longhorn/package.yaml
, filepackages/longhorn/longhorn.patch
, and directorypackages/longhorn/overlay/
.
-
Be careful of the following:
- the repositories and tags in
packages/longhorn/charts/values.yaml
should match the mirrored images in reporancher/image-mirror
- annotations in file
packages/longhorn/charts/Chart.yaml
- file
packages/longhorn/charts/README.yaml
- labels in file
packages/longhorn/charts-crds/templates/crds.yaml
- file
packages/longhorn/charts-crds/README.yaml
andpackages/longhorn/charts-crds/Chart.yaml
- the repositories and tags in
Test Rancher v2.5 Chart for Longhorn new release
- Switch to branch
origin/dev-v2.5
. Copy directorycharts/longhorn
, directoryassets/longhorn
, and fileassets/index.yaml
- Switch to branch
origin/dev-v2.5-source
. - Remove all directories except for
longhorn
in directorypackages/
to avoid unexpected intervenes/failures from other charts. (There are some errors triggered by other charts when I update Longhorn v1.1.0) - Copy the components in step0 back to the Chart repo.
- Remove all other charts info in file
assets/index.yaml
- Run
make charts
. - Create a commit for these changes in a separate PR and push the PR to Github.
- Use the PR in Rancher Cluster Explorer.