...
 
Commits (3)
......@@ -17,6 +17,11 @@ data:
# Register the runner
/entrypoint register --non-interactive \
{{- if .Values.kubernetes.nodeSelector }}
{{- range $key, $value := .Values.kubernetes.nodeSelector }}
--kubernetes-node-selector {{ $key | quote }}:{{ $value | toString | quote }} \
{{- end }}
{{- end }}
--url $GITLAB_URL
# Start the runner
......@@ -25,12 +30,3 @@ data:
config.toml: |
concurrent = {{ .Values.concurrent }}
check_interval = {{ .Values.checkInterval }}
{{- if .Values.kubernetes.nodeSelector }}
[[runners]]
[runners.kubernetes]
[runners.kubernetes.node_selector]
{{- range $key, $value := .Values.kubernetes.nodeSelector }}
{{ $key | toString | quote }} = {{ $value | toString | quote }}
{{- end }}
{{- end }}
......@@ -47,6 +47,10 @@ spec:
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
lifecycle:
preStop:
exec:
command: ["/entrypoint","unregister","--all-runners"]
volumeMounts:
- name: scripts
mountPath: /scripts
......