From 6e630e334c9117219a81f4f148d0ecd7591aa388 Mon Sep 17 00:00:00 2001 From: ccremer Date: Wed, 13 Jul 2022 17:02:05 +0200 Subject: [PATCH] Add chart upgrade instructions Signed-off-by: ccremer --- charts/k8up/Chart.yaml | 4 ++-- charts/k8up/README.gotmpl.md | 18 +++++++++++++++++ charts/k8up/README.md | 28 +++++++++++++++++++++++---- charts/k8up/templates/deployment.yaml | 4 ++++ charts/k8up/templates/service.yaml | 6 +++++- charts/k8up/values.yaml | 7 +++++++ 6 files changed, 60 insertions(+), 7 deletions(-) diff --git a/charts/k8up/Chart.yaml b/charts/k8up/Chart.yaml index ec3755f36..fd28ef38b 100644 --- a/charts/k8up/Chart.yaml +++ b/charts/k8up/Chart.yaml @@ -6,9 +6,9 @@ keywords: - backup - operator - restic -version: 2.0.5 +version: 3.0.0 sources: - https://github.com/k8up-io/k8up maintainers: - - name: APPUiO Team + - name: K8up Authors email: info@appuio.ch diff --git a/charts/k8up/README.gotmpl.md b/charts/k8up/README.gotmpl.md index df76c3491..c77e5d361 100644 --- a/charts/k8up/README.gotmpl.md +++ b/charts/k8up/README.gotmpl.md @@ -39,3 +39,21 @@ Document your changes in values.yaml and let `make docs:helm` generate this sect * Note: `image.tag` changed from `v1.x` to `v2.x`. Please see the [full changelog](https://github.com/k8up-io/k8up/releases/tag/v2.0.0). * `metrics.prometheusRule.legacyRules` has been removed (no support for OpenShift 3.11 anymore). * Note: `k8up.backupImage.repository` changed from `quay.io/vshn/wrestic` to `ghcr.io/k8up-io/k8up` (`wrestic` is not needed anymore in K8up v2). + +## Upgrading from Charts 2.x to 3.x + +Due to the migration of the chart from [APPUiO](https://github.com/appuio/charts/tree/master/appuio/k8up) to this repo, we decided to make a breaking change for the chart. +Only chart archives from version 3.x can be downloaded from the https://k8up-io.github.io/k8up index. +No 2.x chart releases will be migrated from the APPUiO Helm repo. + +Some RBAC roles and role bindings have change the name. +In most cases this shouldn't be an issue and Helm should be able to cleanup the old resources without impact on the RBAC permissions. + +* New parameter: `podAnnotations`, default `{}`. +* New parameter: `service.annotations`, default `{}`. +* Note: Renamed ClusterRole `${release-name}-manager-role` to `${release-name}-manager`. +* Note: Spec of ClusterRole `${release-name}-leader-election-role` moved to `${release-name}-manager`. +* Note: Renamed ClusterRoleBinding `${release-name}-manager-rolebinding` to `${release-name}`. +* Note: ClusterRoleBinding `${release-name}-leader-election-rolebinding` removed (not needed anymore). +* Note: Renamed ClusterRole `${release-name}-k8up-view` to `${release-name}-view`. +* Note: Renamed ClusterRole `${release-name}-k8up-edit` to `${release-name}-edit`. diff --git a/charts/k8up/README.md b/charts/k8up/README.md index 841604115..78633899d 100644 --- a/charts/k8up/README.md +++ b/charts/k8up/README.md @@ -1,6 +1,6 @@ # k8up -![Version: 2.0.5](https://img.shields.io/badge/Version-2.0.5-informational?style=flat-square) +![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=flat-square) Kubernetes and OpenShift Backup Operator based on restic @@ -13,7 +13,7 @@ helm repo add k8up-io https://k8up-io.github.io/k8up helm install k8up k8up-io/k8up ``` ```bash -kubectl apply -f https://github.com/k8up-io/k8up/releases/download/k8up-2.0.5/k8up-crd.yaml +kubectl apply -f https://github.com/k8up-io/k8up/releases/download/k8up-3.0.0/k8up-crd.yaml ```