fix(forgejo-runner): fix secrets creation, adding envs from values
This commit is contained in:
parent
2fc63308da
commit
37a55a4e0f
3 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -60,6 +60,7 @@ metadata:
|
|||
name: {{ $secretName }}
|
||||
annotations:
|
||||
helm.sh/resource-policy: keep
|
||||
"helm.sh/hook": "pre-install,pre-upgrade"
|
||||
type: Opaque
|
||||
---
|
||||
apiVersion: v1
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Reference in a new issue