From 4e95425cedcd488febbf07c3b8e143a85c264228 Mon Sep 17 00:00:00 2001 From: Nehal J Wani Date: Fri, 17 Nov 2017 21:30:06 +0000 Subject: [PATCH] [stable/concourse] Allow injection of add'l env vars to workers (#2590) This can be helpful for users behind a corporate proxy who wish to use resource types which require fetching containers images from outside the organization's network. --- stable/concourse/Chart.yaml | 2 +- stable/concourse/templates/worker-statefulset.yaml | 3 +++ stable/concourse/values.yaml | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/stable/concourse/Chart.yaml b/stable/concourse/Chart.yaml index 080b0019a3..ff72431232 100644 --- a/stable/concourse/Chart.yaml +++ b/stable/concourse/Chart.yaml @@ -1,5 +1,5 @@ name: concourse -version: 0.8.1 +version: 0.8.2 appVersion: 3.5.0 description: Concourse is a simple and scalable CI system. icon: https://avatars1.githubusercontent.com/u/7809479 diff --git a/stable/concourse/templates/worker-statefulset.yaml b/stable/concourse/templates/worker-statefulset.yaml index d8c981fe21..7854e9961d 100644 --- a/stable/concourse/templates/worker-statefulset.yaml +++ b/stable/concourse/templates/worker-statefulset.yaml @@ -98,6 +98,9 @@ spec: configMapKeyRef: name: {{ template "concourse.concourse.fullname" . }} key: worker-fatal-errors +{{- if .Values.worker.env }} +{{ toYaml .Values.worker.env | indent 12 }} +{{- end }} resources: {{ toYaml .Values.worker.resources | indent 12 }} securityContext: diff --git a/stable/concourse/values.yaml b/stable/concourse/values.yaml index 2d7b950b1b..c1b9d25364 100644 --- a/stable/concourse/values.yaml +++ b/stable/concourse/values.yaml @@ -379,6 +379,20 @@ worker: cpu: "100m" memory: "512Mi" + ## Configure additional environment variables for the + ## worker container(s) + # env: + # - name: http_proxy + # value: "http://proxy.your-domain.com:3128" + # - name: https_proxy + # value: "http://proxy.your-domain.com:3128" + # - name: no_proxy + # value: "your-domain.com" + # - name: CONCOURSE_GARDEN_DNS_SERVER + # value: "8.8.8.8" + # - name: CONCOURSE_GARDEN_DNS_PROXY_ENABLE + # value: "true" + ## Annotations to be added to the worker pods. ## # annotations: