chart: Enhance the upgrade process to not require uninstalling (#605)
This commit is contained in:
parent
f16f5b0aa4
commit
c36748b8bc
|
|
@ -18,14 +18,22 @@ Due to the above you can't just do a `helm upgrade` to release the latest versio
|
||||||
|
|
||||||
## Steps
|
## Steps
|
||||||
|
|
||||||
1. Uninstall the chart
|
1. Upgrade CRDs
|
||||||
2. Manually delete the CRDs:
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Delete the CRDs
|
CHART_VERSION=0.11.0
|
||||||
kubectl get crds | grep actions.summerwind. | awk '{print $1}' | xargs kubectl delete crd
|
|
||||||
# Confirm the CRDs are gone
|
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 get crds | grep actions.summerwind.
|
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue