actions / actions/actions-runner-controller

Support scale subresource to scale Runners with kubectl

Open
#1,802 3 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
6.5k
Forks
1.5k
Avg merge
2d 2h
Merged PRs (30d)
27

Description

Is your feature request related to a problem? Please describe.
According to https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#subresources :

Custom resources support /status and /scale subresources.
The status and scale subresources can be optionally enabled by defining them in the CustomResourceDefinition.

Describe the solution you'd like
Being able to scale RunnerDeployments, RunnerStatefulSets and/or RunnerReplicaSets with kubectl:

kubectl scale rdeploy github-runner --replicas=4

Additional context
https://github.com/actions-runner-controller/actions-runner-controller/blob/538e2783d7fde279b84f1ff9351bb1486823660b/charts/actions-runner-controller/crds/actions.summerwind.dev_runnerdeployments.yaml#L5256-L5257

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked actions.summerwind.dev_runnerdeployments.yaml CRD definition and inspect how RunnerDeployments, RunnerStatefulSets, and RunnerReplicaSets are represented. Verify the Kubernetes scale subresource behavior with the kubectl scale example; done means the requested runner resources can be scaled through kubectl.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.