Sub topic 15
Upgrading ARC and recognizing the legacy community version
This chapter assumes you have installed the controller and a runner scale set with Helm, as in the earlier chapters. It covers two things: how to upgrade a working ARC installation, and how to tell the current GitHub-supported ARC from the older community version that many search results still describe.
Two projects share the name ARC
The name "Actions Runner Controller" covers two separate implementations.
- Runner scale set mode is maintained by GitHub. It is what this tutorial installs, from the
gha-runner-scale-set-controllerandgha-runner-scale-setcharts. - Legacy community ARC was created by the
summerwindproject and later maintained by the community. It uses a different architecture and different resources.
Mixing instructions from the two is a common source of errors. This table shows how to tell them apart.
| Aspect | Runner scale set mode | Legacy community ARC |
|---|---|---|
| Chart source | `oci://ghcr.io/actions/actions-runner-controller-charts/...` | `actions-runner-controller` chart from a Helm repository |
| API group | `actions.github.com` | `actions.summerwind.dev` |
| Main resources | `AutoscalingRunnerSet`, `EphemeralRunnerSet`, `EphemeralRunner`, `AutoscalingListener` | `RunnerDeployment`, `HorizontalRunnerAutoscaler`, `Runner` |
| Scaling signal | Listener long-polls GitHub for the job queue | Webhooks or polling configured per autoscaler |
| Workflow targeting | `runs-on: <installation name>` | `runs-on: self-hosted` plus labels |
You can check which one a cluster runs by listing its custom resource definitions:
kubectl get crds | grep -E 'actions\.(github\.com|summerwind\.dev)'Names ending in actions.github.com mean scale set mode. Names ending in actions.summerwind.dev mean the legacy version.
Upgrading a scale set installation
Follow these rules when you upgrade.
- Keep the controller chart and the scale set chart on the same version. Install both with an explicit
--versionso the versions do not drift. - Read the release notes for the target version before you begin.
- Helm does not update CRDs that ship in a chart's
crds/directory when you runhelm upgrade. If a release changes the CRDs, the CRDs in the cluster can be stale. GitHub's documentation for ARC says an upgrade can require uninstalling the scale sets and the controller, then reinstalling them. Check the documentation for your target version. - Plan for a short gap. While you are uninstalling and reinstalling, no runners are available, so schedule the work when few jobs are running.
The usual order is to remove the scale sets first, then the controller, and then install both again:
helm uninstall arc-runner-set --namespace arc-runners
helm uninstall arc --namespace arc-systems
helm install arc \
--namespace arc-systems \
--version 0.9.3 \
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller
helm install arc-runner-set \
--namespace arc-runners \
--version 0.9.3 \
-f values.yaml \
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-setReplace 0.9.3 with the version you chose. Reusing the same installation name, arc-runner-set, keeps runs-on in your workflows valid. Your values.yaml and the pre-defined-secret secret are untouched by the uninstall, so you can reuse both.
Migrating from the legacy version
There is no in-place conversion. A migration has four steps.
- Install the scale set controller in its own namespace, such as
arc-systems. - Install a scale set with the same capacity as an existing
RunnerDeployment. - Change the workflows to use
runs-on: <installation name>. - When no workflow uses the old labels, remove the legacy resources and then the legacy controller.
After the upgrade, confirm that the controller and listener pods are running with kubectl get pods -n arc-systems. Then run the smoke test workflow from the earlier chapter.
Exercise
A teammate pastes a manifest that uses kind: RunnerDeployment and a HorizontalRunnerAutoscaler. Which ARC version does it belong to, and what must change in the workflows when you move to scale sets?
Show answer
It belongs to the legacy community ARC (API group actions.summerwind.dev). Workflows that select runners with runs-on: self-hosted and labels must change to runs-on: <scale set installation name>.