From c36748b8bcef11f789f37bf595c10ceb6dd80922 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Mon, 7 Jun 2021 17:00:40 +0900 Subject: [PATCH] chart: Enhance the upgrade process to not require uninstalling (#605) --- .../docs/UPGRADING.md | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/charts/actions-runner-controller/docs/UPGRADING.md b/charts/actions-runner-controller/docs/UPGRADING.md index ecd3f962..e2cff225 100644 --- a/charts/actions-runner-controller/docs/UPGRADING.md +++ b/charts/actions-runner-controller/docs/UPGRADING.md @@ -18,14 +18,22 @@ Due to the above you can't just do a `helm upgrade` to release the latest versio ## Steps -1. Uninstall the chart -2. Manually delete the CRDs: +1. Upgrade CRDs ```shell -# Delete the CRDs -kubectl get crds | grep actions.summerwind. | awk '{print $1}' | xargs kubectl delete crd -# Confirm the CRDs are gone -kubectl get crds | grep actions.summerwind. +CHART_VERSION=0.11.0 + +curl -L https://github.com/actions-runner-controller/actions-runner-controller/releases/download/actions-runner-controller-${CHART_VERSION}/actions-runner-controller-${CHART_VERSION}.tgz | tar zxv --strip 1 actions-runner-controller/crds + +kubectl apply -f crds/ ``` -3. Install the chart following the documentation +2. Upgrade the Helm release + +```shell +helm upgrade --install \ + --namespace actions-runner-system \ + --version ${CHART_VERSION} \ + actions-runner-controller/actions-runner-controller \ + actions-runner-controller +```