This repository was archived by the owner on Aug 29, 2024. It is now read-only.
File tree 3 files changed +39
-1
lines changed
charts/gha-runner-scale-set
3 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -96,11 +96,17 @@ volumeMounts:
96
96
{ {- end } }
97
97
98
98
{ {- define " gha-runner-scale-set.dind-container" -} }
99
- image: docker:dind
99
+ image: { { default " docker:dind" .Values.dindConfig.image } }
100
100
args:
101
101
- dockerd
102
102
- --host=unix:///var/run/docker.sock
103
103
- --group=$(DOCKER_GROUP_GID)
104
+ { {- if .Values.dindConfig.bip } }
105
+ - --bip={ { .Values.dindConfig.bip } }
106
+ { {- end } }
107
+ { {- if .Values.dindConfig.defaultAddressPool } }
108
+ - --default-address-pool=base={ { .Values.dindConfig.defaultAddressPool.base} },size={ { .Values.dindConfig.defaultAddressPool.size} }
109
+ { {- end } }
104
110
env:
105
111
- name: DOCKER_GROUP_GID
106
112
value: "123"
Original file line number Diff line number Diff line change @@ -164,3 +164,19 @@ spec:
164
164
{{- end }}
165
165
{{- end }}
166
166
{{- end }}
167
+ {{- with .Values.nodeSelector }}
168
+ nodeSelector :
169
+ {{- toYaml . | nindent 8 }}
170
+ {{- end }}
171
+ {{- with .Values.affinity }}
172
+ affinity :
173
+ {{- toYaml . | nindent 8 }}
174
+ {{- end }}
175
+ {{- with .Values.topologySpreadConstraints }}
176
+ topologySpreadConstraints :
177
+ {{- toYaml . | nindent 8 }}
178
+ {{- end }}
179
+ {{- with .Values.tolerations }}
180
+ tolerations :
181
+ {{- toYaml . | nindent 8 }}
182
+ {{- end }}
Original file line number Diff line number Diff line change @@ -88,6 +88,14 @@ githubConfigSecret:
88
88
# kubernetesModeServiceAccount:
89
89
# annotations:
90
90
91
+ # # The following is the customization for dind image and network configuration
92
+ # dindConfig:
93
+ # image: docker:20.10.7-dind
94
+ # bip: 192.168.200.1/24
95
+ # defaultAddressPool:
96
+ # base: 192.168.201.1/24
97
+ # size: 24
98
+
91
99
# # listenerTemplate is the PodSpec for each listener Pod
92
100
# # For reference: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodSpec
93
101
# listenerTemplate:
@@ -201,3 +209,11 @@ template:
201
209
# controllerServiceAccount:
202
210
# namespace: arc-system
203
211
# name: test-arc-gha-runner-scale-set-controller
212
+
213
+ nodeSelector : {}
214
+
215
+ tolerations : []
216
+
217
+ affinity : {}
218
+
219
+ topologySpreadConstraints : []
You can’t perform that action at this time.
0 commit comments