From c6ec8de102d1655bc995ff407856a4d4eb821648 Mon Sep 17 00:00:00 2001 From: Nick Stott Date: Wed, 6 Mar 2019 22:24:10 -0500 Subject: [PATCH] add metricsConfig to the configmaps for the workflow-controller-configmap.yaml --- charts/argo/templates/workflow-controller-config-map.yaml | 3 +++ charts/argo/values.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/charts/argo/templates/workflow-controller-config-map.yaml b/charts/argo/templates/workflow-controller-config-map.yaml index 4c97cfc6..f77637a0 100644 --- a/charts/argo/templates/workflow-controller-config-map.yaml +++ b/charts/argo/templates/workflow-controller-config-map.yaml @@ -30,3 +30,6 @@ data: endpoint: {{ .Values.artifactRepository.s3.endpoint | default (printf "%s-%s" .Release.Name "minio:9000") }} insecure: {{ .Values.artifactRepository.s3.insecure }} {{- end}} + {{- if .Values.controller.metricsConfig.enabled }} + metricsConfig: +{{ toYaml .Values.controller.metricsConfig | indent 6}}{{- end }} diff --git a/charts/argo/values.yaml b/charts/argo/values.yaml index bb0985fa..bf5607ce 100644 --- a/charts/argo/values.yaml +++ b/charts/argo/values.yaml @@ -15,6 +15,10 @@ init: controller: # podAnnotations is an optional map of annotations to be applied to the controller Pods podAnnotations: {} + metricsConfig: + enabled: false + path: /metrics + port: 8080 serviceAccount: argo name: workflow-controller workflowNamespaces: