From 4a81cb07144fae12c1f819f7f9d0e949a9b846dd Mon Sep 17 00:00:00 2001 From: kornesh Date: Tue, 7 May 2019 22:45:50 +0800 Subject: [PATCH] Add archiveLogs option to Argo workflow controller config map (#32) --- charts/argo/templates/workflow-controller-config-map.yaml | 3 +++ charts/argo/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/argo/templates/workflow-controller-config-map.yaml b/charts/argo/templates/workflow-controller-config-map.yaml index f77637a0..6d456905 100644 --- a/charts/argo/templates/workflow-controller-config-map.yaml +++ b/charts/argo/templates/workflow-controller-config-map.yaml @@ -17,6 +17,9 @@ data: {{- end }} artifactRepository: {{- if or .Values.minio.install .Values.useDefaultArtifactRepo }} + {{- if .Values.artifactRepository.archiveLogs }} + archiveLogs: {{ .Values.artifactRepository.archiveLogs }} + {{- end }} s3: {{- if .Values.useStaticCredentials }} accessKeySecret: diff --git a/charts/argo/values.yaml b/charts/argo/values.yaml index 09faee2f..85a4fc37 100644 --- a/charts/argo/values.yaml +++ b/charts/argo/values.yaml @@ -79,6 +79,8 @@ ui: useDefaultArtifactRepo: false useStaticCredentials: true artifactRepository: + # archiveLogs will archive the main container logs as an artifact + archiveLogs: false s3: # Note the `key` attribute is not the actual secret, it's the PATH to # the contents in the associated secret, as defined by the `name` attribute.