ServiceMonitor namespaceSelector defaults to current namespace (#7001)
This commit is contained in:
parent
c6adeb8f8c
commit
e4001df41e
1 changed files with 0 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue