Support scale subresource to scale Runners with kubectl
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
/statusand/scalesubresources. 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
Would be realy nice to have it. Keda scaling object can only scale resources implementing /scale subresource.
Bit of an old issue, but it would also be good to have this for AutoscalingRunnerSet resources as well
I made a PR for your use case here https://github.com/actions/actions-runner-controller/pull/3291
The AutoscalingRunnerSet use case doesn't make much sense when I think about it. Ultimately I want to set the minReplicas dynamically, so it's slightly different