diff --git a/README.md b/README.md index d5c2d8b..9d74d49 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ The following tables lists the configurable parameters of the `vsts-agent` chart | `vstsPool` | VSTS agent pool name | `kubernetes-vsts-agents` | | `vstsAgentName` | VSTS agent name | `$HOSTNAME` | | `vstsWorkspace` | VSTS agent workspace | `/workspace` | +| `extraEnv` | Extra environment variables on the vsts-agent container | `nil` | ## Configure your VSTS instance diff --git a/templates/vsts-agent.yaml b/templates/vsts-agent.yaml index 902aef1..bd73901 100644 --- a/templates/vsts-agent.yaml +++ b/templates/vsts-agent.yaml @@ -36,7 +36,11 @@ spec: value: {{ .vstsAgentName | default "$HOSTNAME" }} - name: VSTS_WORK value: {{ .vstsWorkspace | default "/workspace" }} - {{- end }} + {{- end }} + {{- range $key, $value := .Values.extraEnv }} + - name: {{ $key }} + value: {{ $value | quote }} + {{- end }} volumeMounts: - name: docker-socket mountPath: /var/run/docker.sock diff --git a/values.yaml b/values.yaml index 090b55a..4090489 100644 --- a/values.yaml +++ b/values.yaml @@ -14,3 +14,5 @@ resources: memory: 8Gi disk: "50Gi" storageclass: "default" + +extraEnv: