Skip to content

Commit dd0e626

Browse files
committed
feat: add fullname override option for gha-runner-scale-set
1 parent 1e10417 commit dd0e626

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

charts/gha-runner-scale-set/templates/_helpers.tpl

+4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
2020
If release name contains chart name it will be used as a full name.
2121
*/}}
2222
{{- define "gha-runner-scale-set.fullname" -}}
23+
{{- if .Values.fullnameOverride -}}
24+
{{- .Values.fullnameOverride -}}
25+
{{- else -}}
2326
{{- $name := default (include "gha-base-name" .) }}
2427
{{- printf "%s-%s" (include "gha-runner-scale-set.scale-set-name" .) $name | trunc 63 | trimSuffix "-" }}
2528
{{- end }}
29+
{{- end }}
2630

2731
{{/*
2832
Create chart name and version as used by the chart label.

charts/gha-runner-scale-set/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ githubConfigSecret:
4848
## name of the runner scale set to create. Defaults to the helm release name
4949
# runnerScaleSetName: ""
5050

51+
## Override the fullname of the gha-runner-scale-set
52+
## This is useful for deploying multiple runner scale sets in the same namespace
53+
## with the same scale set name but different GitHub configuration URLs.
54+
fullnameOverride: ""
55+
5156
## A self-signed CA certificate for communication with the GitHub server can be
5257
## provided using a config map key selector. If `runnerMountPath` is set, for
5358
## each runner pod ARC will:

0 commit comments

Comments
 (0)