fix(forgejo-runner): fix secrets creation, adding envs from values
This commit is contained in:
parent
19e361b9f5
commit
54755bc90c
6 changed files with 20 additions and 2 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
name: forgejo-runner
|
name: forgejo-runner
|
||||||
description: Deploy runner for an forgejo instance (default codeberg.org)
|
description: Deploy runner for an forgejo instance (default codeberg.org)
|
||||||
type: application
|
type: application
|
||||||
version: 0.2.11
|
version: 0.2.12
|
||||||
# renovate: image=code.forgejo.org/forgejo/runner
|
# renovate: image=code.forgejo.org/forgejo/runner
|
||||||
appVersion: "3.5.1"
|
appVersion: "3.5.1"
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
= forgejo-runner
|
= forgejo-runner
|
||||||
|
|
||||||
image::https://img.shields.io/badge/Version-0.2.11-informational?style=flat-square[Version: 0.2.11]
|
image::https://img.shields.io/badge/Version-0.2.12-informational?style=flat-square[Version: 0.2.12]
|
||||||
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
|
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
|
||||||
image::https://img.shields.io/badge/AppVersion-3.5.1-informational?style=flat-square[AppVersion: 3.5.1]
|
image::https://img.shields.io/badge/AppVersion-3.5.1-informational?style=flat-square[AppVersion: 3.5.1]
|
||||||
== Maintainers
|
== Maintainers
|
||||||
|
@ -248,6 +248,11 @@ helm uninstall forgejo-runner-release
|
||||||
| `"27.3.1-dind"`
|
| `"27.3.1-dind"`
|
||||||
|
|
|
|
||||||
|
|
||||||
|
| extraEnvVars
|
||||||
|
| list
|
||||||
|
| `[]`
|
||||||
|
| Additional environment variables to be set on runner container Example: extraEnvVars: - name: FOO value: "bar"
|
||||||
|
|
||||||
| fullnameOverride
|
| fullnameOverride
|
||||||
| string
|
| string
|
||||||
| `""`
|
| `""`
|
||||||
|
|
|
@ -66,6 +66,9 @@ spec:
|
||||||
value: /certs/client
|
value: /certs/client
|
||||||
- name: DOCKER_TLS_VERIFY
|
- name: DOCKER_TLS_VERIFY
|
||||||
value: "1"
|
value: "1"
|
||||||
|
{{- with .Values.extraEnvVars }}
|
||||||
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: runner-configfile
|
- name: runner-configfile
|
||||||
mountPath: /etc/runner
|
mountPath: /etc/runner
|
||||||
|
|
|
@ -60,6 +60,7 @@ metadata:
|
||||||
name: {{ $secretName }}
|
name: {{ $secretName }}
|
||||||
annotations:
|
annotations:
|
||||||
helm.sh/resource-policy: keep
|
helm.sh/resource-policy: keep
|
||||||
|
"helm.sh/hook": "pre-install,pre-upgrade"
|
||||||
type: Opaque
|
type: Opaque
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|
|
@ -7,5 +7,6 @@ metadata:
|
||||||
{{- include "forgejo-runner.labels" . | nindent 4 }}
|
{{- include "forgejo-runner.labels" . | nindent 4 }}
|
||||||
annotations:
|
annotations:
|
||||||
config-hash: {{ toYaml .Values.runner.config.file | sha256sum }}
|
config-hash: {{ toYaml .Values.runner.config.file | sha256sum }}
|
||||||
|
"helm.sh/hook": "pre-install,pre-upgrade"
|
||||||
data:
|
data:
|
||||||
config.yaml: {{ toYaml .Values.runner.config.file | b64enc }}
|
config.yaml: {{ toYaml .Values.runner.config.file | b64enc }}
|
||||||
|
|
|
@ -212,3 +212,11 @@ nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
# -- Additional environment variables to be set on runner container
|
||||||
|
# Example:
|
||||||
|
# extraEnvVars:
|
||||||
|
# - name: FOO
|
||||||
|
# value: "bar"
|
||||||
|
#
|
||||||
|
extraEnvVars: []
|
||||||
|
|
Loading…
Add table
Reference in a new issue