Skip to content

Runner Template does not support pod resources (k8s 1.32+) #3943

@AngellusMortis

Description

@AngellusMortis

Checks

Controller Version

0.10.1

Deployment Method

Helm

Checks

  • This isn't a question or user support case (For Q&A and community support, go to Discussions).
  • I've read the Changelog before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes

To Reproduce

1. Add values for `template.spec.resources` in the gha-runner-scale-set Helm chart values

Describe the bug

Kubernetes 1.32 adds the ability to set resource limits on the pod level, the CRD definition for AutoscalingRunnerSet does not allow this. Doing so results in

failed to create typed patch object (arc-runners/cicd-pipelines-dev; actions.github.com/v1alpha1, Kind=AutoscalingRunnerSet): .spec.template.spec.resources: field not declared in schema

Describe the expected behavior

AutoscalingRunnerSet should support pod level resource limits

Additional Context

template:
  spec:
    resources:
      requests:
        cpu: "2000m"
        memory: "1000Mi"
      limits:
        cpu: "2000m"
        memory: "8000Mi"

Controller Logs

failed to create typed patch object (arc-runners/cicd-pipelines-dev; actions.github.com/v1alpha1, Kind=AutoscalingRunnerSet): .spec.template.spec.resources: field not declared in schema

Runner Pod Logs

failed to create typed patch object (arc-runners/cicd-pipelines-dev; actions.github.com/v1alpha1, Kind=AutoscalingRunnerSet): .spec.template.spec.resources: field not declared in schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggha-runner-scale-setRelated to the gha-runner-scale-set mode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions