File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
charts/gha-runner-scale-set-controller Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -129,11 +129,3 @@ Create the name of the service account to use
129
129
{ {- define " gha-runner-scale-set-controller.leaderElectionRoleBinding" -} }
130
130
{ {- include " gha-runner-scale-set-controller.fullname" . } }-leader-election
131
131
{ {- end } }
132
-
133
- { {- define " gha-runner-scale-set-controller.imagePullSecretsNames" -} }
134
- { {- $names := list } }
135
- { {- range $k , $v := . } }
136
- { {- $names = append $names $v .name } }
137
- { {- end } }
138
- { {- $names | join " ," } }
139
- { {- end } }
Original file line number Diff line number Diff line change 54
54
- " --leader-election-id={{ include " gha-runner-scale-set-controller.fullname" . }}"
55
55
{{- end }}
56
56
{{- with .Values.imagePullSecrets }}
57
- - " --auto-scaler-image-pull-secrets={{ include " gha-runner-scale-set-controller.imagePullSecretsNames" . }}"
57
+ {{- range . }}
58
+ - " --auto-scaler-image-pull-secrets={{- .name -}}"
59
+ {{- end }}
58
60
{{- end }}
59
61
{{- with .Values.flags.logLevel }}
60
62
- " --log-level={{ . }}"
Original file line number Diff line number Diff line change @@ -683,7 +683,8 @@ func TestTemplate_ControllerDeployment_ForwardImagePullSecrets(t *testing.T) {
683
683
684
684
expectedArgs := []string {
685
685
"--auto-scaling-runner-set-only" ,
686
- "--auto-scaler-image-pull-secrets=dockerhub,ghcr" ,
686
+ "--auto-scaler-image-pull-secrets=dockerhub" ,
687
+ "--auto-scaler-image-pull-secrets=ghcr" ,
687
688
"--log-level=debug" ,
688
689
"--log-format=text" ,
689
690
"--update-strategy=immediate" ,
@@ -1079,6 +1080,7 @@ func TestDeployment_excludeLabelPropagationPrefixes(t *testing.T) {
1079
1080
assert .Contains (t , container .Args , "--exclude-label-propagation-prefix=prefix.com/" )
1080
1081
assert .Contains (t , container .Args , "--exclude-label-propagation-prefix=complete.io/label" )
1081
1082
}
1083
+
1082
1084
func TestNamespaceOverride (t * testing.T ) {
1083
1085
t .Parallel ()
1084
1086
You can’t perform that action at this time.
0 commit comments