diff --git a/charts/actions-runner-controller/templates/deployment.yaml b/charts/actions-runner-controller/templates/deployment.yaml index 55a9f601..522d835b 100644 --- a/charts/actions-runner-controller/templates/deployment.yaml +++ b/charts/actions-runner-controller/templates/deployment.yaml @@ -118,10 +118,14 @@ spec: name: {{ include "actions-runner-controller.secretName" . }} optional: true {{- end }} + {{- if kindIs "slice" .Values.env }} + {{- toYaml .Values.env | nindent 8 }} + {{- else }} {{- range $key, $val := .Values.env }} - name: {{ $key }} value: {{ $val | quote }} {{- end }} + {{- end }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (cat "v" .Chart.AppVersion | replace " " "") }}" name: manager imagePullPolicy: {{ .Values.image.pullPolicy }} diff --git a/charts/actions-runner-controller/values.yaml b/charts/actions-runner-controller/values.yaml index d3083d5f..0323f501 100644 --- a/charts/actions-runner-controller/values.yaml +++ b/charts/actions-runner-controller/values.yaml @@ -149,10 +149,21 @@ priorityClassName: "" 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" # https_proxy: "proxy.com:8080" # 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 ## to specify additional storage of material or to inject files from ConfigMaps ## into the running container