Skip to content

Add chart-level API to customize internal resources#4410

Open
nikola-jokic wants to merge 2 commits intomasterfrom
nikola-jokic/add-chart-api-to-customize-resources
Open

Add chart-level API to customize internal resources#4410
nikola-jokic wants to merge 2 commits intomasterfrom
nikola-jokic/add-chart-api-to-customize-resources

Conversation

@nikola-jokic
Copy link
Collaborator

@nikola-jokic nikola-jokic commented Mar 17, 2026

Extends #4400

@nikola-jokic nikola-jokic requested a review from mumoshu as a code owner March 17, 2026 21:12
@nikola-jokic nikola-jokic added the gha-runner-scale-set Related to the gha-runner-scale-set mode label Mar 17, 2026
@nikola-jokic nikola-jokic requested review from a team, rentziass and toast-gear as code owners March 17, 2026 21:12
Copilot AI review requested due to automatic review settings March 17, 2026 21:12
@github-actions
Copy link
Contributor

Hello! Thank you for your contribution.

Please review our contribution guidelines to understand the project's testing and code conventions.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends both the stable and experimental Helm charts to let users set labels/annotations for controller-created “internal” resources (listener, listener RBAC objects, ephemeral runner resources) by rendering additional ResourceMeta fields into the AutoscalingRunnerSet spec.

Changes:

  • Add new chart values for internal resource metadata (labels/annotations) for listener + ephemeral runner resources.
  • Render those values into the AutoscalingRunnerSet spec via new helper templates.
  • Add/extend chart tests to assert the new spec fields are rendered.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
charts/gha-runner-scale-set/values.yaml Documents new resourceMeta.* keys for internal resources.
charts/gha-runner-scale-set/templates/_helpers.tpl Adds helper to render ResourceMeta blocks for spec fields.
charts/gha-runner-scale-set/templates/autoscalingrunnerset.yaml Renders internal resource metadata fields into the ARS spec.
charts/gha-runner-scale-set/tests/template_test.go Extends Go-based Helm rendering tests for new metadata fields.
charts/gha-runner-scale-set-experimental/values.yaml Adds default config blocks for internal resource metadata under resource.*.
charts/gha-runner-scale-set-experimental/templates/_autoscalingrunnerset.tpl Adds helper to render spec-level internal resource metadata blocks.
charts/gha-runner-scale-set-experimental/templates/autoscalingrunnserset.yaml Renders internal resource metadata fields into the experimental ARS spec.
charts/gha-runner-scale-set-experimental/tests/autoscaling_runner_set_labels_test.yaml Adds helm-unittest assertions for spec-level internal labels.
charts/gha-runner-scale-set-experimental/tests/autoscaling_runner_set_annotations_test.yaml Adds helm-unittest assertions for spec-level internal annotations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +491 to +499
# autoscalingListener:
# labels:
# key: value
# annotations:
# key: value
# listenerServiceAccount:
# labels:
# key: value
# annotations:
Comment on lines +158 to +175
autoscalingListener:
{{- include "gha-runner-scale-set.resourceMetaSpec" . | nindent 4 }}
{{- end }}

{{- with .Values.resourceMeta.listenerServiceAccount }}
listenerServiceAccountMetadata:
{{- include "gha-runner-scale-set.resourceMetaSpec" . | nindent 4 }}
{{- end }}

{{- with .Values.resourceMeta.listenerRole }}
listenerRoleMetadata:
{{- include "gha-runner-scale-set.resourceMetaSpec" . | nindent 4 }}
{{- end }}

{{- with .Values.resourceMeta.listenerRoleBinding }}
listenerRoleBindingMetadata:
{{- include "gha-runner-scale-set.resourceMetaSpec" . | nindent 4 }}
{{- end }}
Comment on lines +106 to +112
# Specifies metadata that will be applied to the AutoscalingListener resource
# created by the AutoscalingRunnerSet controller.
autoscalingListener:
metadata:
labels: {}
annotations: {}

@nikola-jokic nikola-jokic force-pushed the nikola-jokic/add-chart-api-to-customize-resources branch from 6030bb4 to 9045b24 Compare March 17, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gha-runner-scale-set Related to the gha-runner-scale-set mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants