diff --git a/deployment/dcgm-exporter/templates/service-monitor.yaml b/deployment/dcgm-exporter/templates/service-monitor.yaml index 6643a4b..3837d07 100644 --- a/deployment/dcgm-exporter/templates/service-monitor.yaml +++ b/deployment/dcgm-exporter/templates/service-monitor.yaml @@ -34,9 +34,9 @@ spec: namespaceSelector: matchNames: {{- if .Values.namespace }} - - namespace: "{{ .Values.namespace }}" + - "{{ .Values.namespace }}" {{ else }} - - namespace: "{{ .Release.Namespace }}" + - "{{ .Release.Namespace }}" {{- end }} endpoints: - port: "metrics"