ServiceMonitor namespaceSelector defaults to current namespace (#7001)

This commit is contained in:
James Callahan 2021-10-25 08:28:21 +11:00 committed by GitHub
parent c6adeb8f8c
commit e4001df41e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,10 +27,6 @@ spec:
{{- end }}
{{- if .Values.controller.metrics.serviceMonitor.namespaceSelector }}
namespaceSelector: {{ toYaml .Values.controller.metrics.serviceMonitor.namespaceSelector | nindent 4 }}
{{ else }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
{{- end }}
{{- if .Values.controller.metrics.serviceMonitor.targetLabels }}
targetLabels: