Skip to content

Commit

Permalink
Merge pull request #14 from rancher/docs/add-migration-doc
Browse files Browse the repository at this point in the history
Add codeowners and charts migration doc
  • Loading branch information
mallardduck authored Sep 25, 2024
2 parents 4689e65 + 8ed1a14 commit f1a5639
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @rancher/observation-backup
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ This repo produces a Rancher specific version of the `flavio/kuberlr` image.
- This gives us full "Y" and "Z" control on versioning the component to target Rancher minors.
- E.x. Rancher 2.8.x releases will get varying versions of 1.Y.Z

### Migration

See the dedicated [Migration's Doc](/docs/chart-migration.md) for specific details on migrating charts.

### Compatability

The base `flavio/kuberlr` image comes from the upstream repo and is essentially universally compatible like `kuberlr`.
Expand Down
24 changes: 24 additions & 0 deletions docs/chart-migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Migrating `rancher/charts` packages

## How To: Migrate charts from `rancher/kubectl` to `rancher/kuberlr-kubectl`

### Migrating charts based on Rancher version


Since the new `kuberlr` based image targets Rancher minor versions, the chart migration process depends on the Rancher minor version the chart targets.

Refer to the table below (and maintained on the main [README.md](/README.md)) to identify the appropriate `rancher/kuberlr-kubectl` image version when replacing `rancher/kubectl`.

| `rancher/kuberlr-kubectl` Tag | Rancher Tag (Branch) |
|---------------|----------------------|
| v3.Y.Z | 2.10.Z (main) |
| v2.Y.Z | 2.9.Z (release/v2.9) |
| v1.Y.Z | 2.8.Z (release/v2.8) |

### Migrating charts from `rancher/shell`

Previously, some charts required `rancher/shell` instead of `rancher/kubectl` because the older `rancher/kubectl` image only included `kubectl` binary and lacked a full shell environment.

This isn't the case with `rancher/kuberlr-kubectl`. Unless the chart uses `rancher/shell` for the `helm` binary then it should be safe to switch to `rancher/kuberlr-kubectl`.

Refer to the table above and use the corresponding `rancher/kuberlr-kubectl` version. Ensure your QA process validates this aspect of the chart(s), usually related to upgrade jobs or similar tasks.

0 comments on commit f1a5639

Please sign in to comment.