diff --git a/charts/argo-workflows/templates/controller/workflow-controller-servicemonitor.yaml b/charts/argo-workflows/templates/controller/workflow-controller-servicemonitor.yaml index bdda4bd0..01844a87 100644 --- a/charts/argo-workflows/templates/controller/workflow-controller-servicemonitor.yaml +++ b/charts/argo-workflows/templates/controller/workflow-controller-servicemonitor.yaml @@ -24,9 +24,7 @@ spec: metricRelabelings: {{- toYaml . | nindent 8 }} {{- end }} - {{- if .Values.controller.metricsConfig.honorLabels }} - honorLabels: true - {{- end }} + honorLabels: {{ .Values.controller.metricsConfig.honorLabels }} {{- end }} {{- if .Values.controller.telemetryConfig.enabled }} - port: telemetry @@ -40,9 +38,7 @@ spec: metricRelabelings: {{- toYaml . | nindent 8 }} {{- end }} - {{- if .Values.controller.metricsConfig.honorLabels }} - honorLabels: true - {{- end }} + honorLabels: {{ .Values.controller.metricsConfig.honorLabels }} {{- end }} {{- with .Values.controller.metricsConfig.targetLabels }} targetLabels: