fix(forgejo-runner): fix secrets creation, adding envs from values

This commit is contained in:
Alexey Pavlunin 2024-09-27 10:59:06 +03:00
parent 2fc63308da
commit 37a55a4e0f
3 changed files with 8 additions and 0 deletions

View file

@ -66,6 +66,12 @@ spec:
value: /certs/client
- name: DOCKER_TLS_VERIFY
value: "1"
{{- with .Values.runner.config.file.runner.envs }}
{{- range $key, $value := . }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
volumeMounts:
- name: runner-configfile
mountPath: /etc/runner

View file

@ -60,6 +60,7 @@ metadata:
name: {{ $secretName }}
annotations:
helm.sh/resource-policy: keep
"helm.sh/hook": "pre-install,pre-upgrade"
type: Opaque
---
apiVersion: v1

View file

@ -7,5 +7,6 @@ metadata:
{{- include "forgejo-runner.labels" . | nindent 4 }}
annotations:
config-hash: {{ toYaml .Values.runner.config.file | sha256sum }}
"helm.sh/hook": "pre-install,pre-upgrade"
data:
config.yaml: {{ toYaml .Values.runner.config.file | b64enc }}