Adds way to allow additional environment variables from secretKeyRef (#1565)
* adds additionalFullEnv to allow additional secret refs * Update charts/actions-runner-controller/templates/deployment.yaml Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com> * adds examples into values.yaml * fix Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
parent
584745b67d
commit
23f357db10
|
|
@ -118,10 +118,14 @@ spec:
|
||||||
name: {{ include "actions-runner-controller.secretName" . }}
|
name: {{ include "actions-runner-controller.secretName" . }}
|
||||||
optional: true
|
optional: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if kindIs "slice" .Values.env }}
|
||||||
|
{{- toYaml .Values.env | nindent 8 }}
|
||||||
|
{{- else }}
|
||||||
{{- range $key, $val := .Values.env }}
|
{{- range $key, $val := .Values.env }}
|
||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
value: {{ $val | quote }}
|
value: {{ $val | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (cat "v" .Chart.AppVersion | replace " " "") }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (cat "v" .Chart.AppVersion | replace " " "") }}"
|
||||||
name: manager
|
name: manager
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
|
|
||||||
|
|
@ -149,10 +149,21 @@ priorityClassName: ""
|
||||||
|
|
||||||
env:
|
env:
|
||||||
{}
|
{}
|
||||||
|
# specify additional environment variables for the controller pod.
|
||||||
|
# It's possible to specify either key vale pairs e.g.:
|
||||||
# http_proxy: "proxy.com:8080"
|
# http_proxy: "proxy.com:8080"
|
||||||
# https_proxy: "proxy.com:8080"
|
# https_proxy: "proxy.com:8080"
|
||||||
# no_proxy: ""
|
# no_proxy: ""
|
||||||
|
|
||||||
|
# or a list of complete environment variable definitions e.g.:
|
||||||
|
# - name: GITHUB_APP_INSTALLATION_ID
|
||||||
|
# valueFrom:
|
||||||
|
# secretKeyRef:
|
||||||
|
# key: some_key_in_the_secret
|
||||||
|
# name: some-secret-name
|
||||||
|
# optional: true
|
||||||
|
|
||||||
|
|
||||||
## specify additional volumes to mount in the manager container, this can be used
|
## specify additional volumes to mount in the manager container, this can be used
|
||||||
## to specify additional storage of material or to inject files from ConfigMaps
|
## to specify additional storage of material or to inject files from ConfigMaps
|
||||||
## into the running container
|
## into the running container
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue