Add support for additional env vars in agent

This commit is contained in:
Ryan Grenz 2018-10-05 11:11:20 +01:00
Родитель e047755f4e
Коммит 56b971ca03
3 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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

Просмотреть файл

@ -14,3 +14,5 @@ resources:
memory: 8Gi
disk: "50Gi"
storageclass: "default"
extraEnv: