Ported chart changes from edfbuilder/kind/charts/forgejo-runner to this base repo
All checks were successful
Test runners / test-runner (push) Successful in 2s
All checks were successful
Test runners / test-runner (push) Successful in 2s
This commit is contained in:
parent
16ac9cb908
commit
c00805391e
3 changed files with 13 additions and 5 deletions
|
@ -36,7 +36,7 @@ spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: runner-register
|
- name: runner-register
|
||||||
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
||||||
command: ["forgejo-runner", "register", "--no-interactive", "--token", $(RUNNER_SECRET), "--name", $(RUNNER_NAME), "--instance", $(FORGEJO_INSTANCE_URL)]
|
command: ["forgejo-runner", "register", "--no-interactive", "--token", $(RUNNER_SECRET), "--name", $(RUNNER_NAME), "--instance", $(FORGEJO_INSTANCE_URL), "--labels", $(RUNNER_LABELS)]
|
||||||
env:
|
env:
|
||||||
- name: RUNNER_NAME
|
- name: RUNNER_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
@ -49,6 +49,8 @@ spec:
|
||||||
key: token
|
key: token
|
||||||
- name: FORGEJO_INSTANCE_URL
|
- name: FORGEJO_INSTANCE_URL
|
||||||
value: {{ .Values.forgejoUrl }}
|
value: {{ .Values.forgejoUrl }}
|
||||||
|
- name: RUNNER_LABELS
|
||||||
|
value: {{ join "," .Values.runnerLabels }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|
|
@ -10,7 +10,8 @@ kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "forgejo-runner.fullname" . }}-token
|
name: {{ include "forgejo-runner.fullname" . }}-token
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
metadata:
|
# TODO: RIRE should this be enabled?
|
||||||
annotations:
|
#metadata:
|
||||||
argocd.argoproj.io/sync-options: Prune=false
|
# annotations:
|
||||||
|
# argocd.argoproj.io/sync-options: Prune=false
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -42,4 +42,9 @@ registration:
|
||||||
enabled: false
|
enabled: false
|
||||||
token: ""
|
token: ""
|
||||||
|
|
||||||
forgejoUrl: http://forgejo-http.forgejo.svc.cluster.local:3000
|
forgejoUrl: https://my.forgejo.server
|
||||||
|
|
||||||
|
runnerLabels:
|
||||||
|
- docker:docker://node:20-bullseye
|
||||||
|
- ubuntu-latest:docker://node:20-bullseye
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue