feat: Enable specifying environment for Argo workflow executor. (#349)

This commit is contained in:
Vlad Losev 2020-05-14 17:04:21 -07:00 committed by GitHub
parent 2ad0ce8f3e
commit 859d769c12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: v2.8.0 appVersion: v2.8.0
description: A Helm chart for Argo Workflows description: A Helm chart for Argo Workflows
name: argo name: argo
version: 0.9.0 version: 0.9.1
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
maintainers: maintainers:

View file

@ -16,10 +16,14 @@ data:
{{- end }} {{- end }}
{{- end }} {{- end }}
containerRuntimeExecutor: {{ .Values.controller.containerRuntimeExecutor }} containerRuntimeExecutor: {{ .Values.controller.containerRuntimeExecutor }}
{{- with .Values.executor.resources }} {{- if or .Values.executor.resources .Values.executor.env }}
executor: executor:
resources: {{- with .Values.executor.resources }}
{{- toYaml . | nindent 8 }} resources: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.executor.env }}
env: {{- toYaml . | nindent 8 }}
{{- end }}
{{- end }} {{- end }}
artifactRepository: artifactRepository:
{{- if or .Values.minio.install .Values.useDefaultArtifactRepo }} {{- if or .Values.minio.install .Values.useDefaultArtifactRepo }}

View file

@ -111,6 +111,8 @@ executor:
# Overrides .images.tag if defined. # Overrides .images.tag if defined.
tag: "" tag: ""
resources: {} resources: {}
# Adds environment variables for the executor.
env: {}
server: server:
enabled: true enabled: true