--- service-monitor: templates: - | {{ range .Values.service-monitor.resources }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: {{ .name }} spec: selector: matchLabels: exporter: {{ .label.exporter }} endpoints: - port: {{ .endpoints.port }} {{ end }}