Add support for additional env vars in agent
This commit is contained in:
Родитель
e047755f4e
Коммит
56b971ca03
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче