forked from longhorn/longhorn
-
Notifications
You must be signed in to change notification settings - Fork 0
dev: Update and test Rancher v2.5 Chart
Shuo Wu edited this page Jan 11, 2021
·
1 revision
-
Add new Longhorn images in file
images-listand sort them lexicographically. -
Do not remove the existing/old Longhorn images.
- 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 prepareto 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 to00for each new Longhorn version release) inpackages/longhorn/package.yamlfirst. Then Runmake CHART=longhorn prepareand solve the conflicts.
- Directly run
- Run
make CHART=longhorn cleanto do cleanup first. Then runmake CHART=longhorn prepareto fetch the current Longhorn Chart. - Override
packages/longhorn/chartswith the new chart files prepared in step1. Then update the CRD sub-chartpackages/longhorn/charts-crds. - Modify the fields
commitandpackageVersion(reset the version to00for each new Longhorn version release) inpackages/longhorn/package.yaml, and update the roles in the directorypackages/longhorn/overlay/if necessary. - Run
make CHART=longhorn patchto update the patch file. - Run
make CHART=longhorn cleanto 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.yamlshould 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.yamlandpackages/longhorn/charts-crds/Chart.yaml
- the repositories and tags in
- 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
longhornin 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.