chart: Enhance the upgrade process to not require uninstalling (#605)

This commit is contained in:
Yusuke Kuoka 2021-06-07 17:00:40 +09:00 committed by GitHub
parent f16f5b0aa4
commit c36748b8bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 7 deletions

View File

@ -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
```