File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
scripts/devtron-reference-helm-charts/statefulset-chart_5-1-0/templates Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 38
38
{{- if .servicemonitor.scrapeTimeout }}
39
39
scrapeTimeout : {{ .servicemonitor.scrapeTimeout}}
40
40
{{- end }}
41
+ {{- if .servicemonitor.basicAuth }}
42
+ basicAuth :
43
+ {{- toYaml .servicemonitor.basicAuth | nindent 8 }}
44
+ {{- end }}
41
45
{{- if .servicemonitor.metricRelabelings}}
42
46
metricRelabelings :
43
47
{{toYaml .servicemonitor.metricRelabelings | indent 8 }}
46
50
{{- end }}
47
51
{{- end }}
48
52
{{- end }}
53
+ {{- if .Values.servicemonitor.namespaceSelector }}
54
+ namespaceSelector :
55
+ matchNames :
56
+ {{- toYaml .Values.servicemonitor.namespaceSelector | nindent 6 }}
57
+ {{- end }}
49
58
selector :
50
59
matchLabels :
60
+ {{- if .Values.servicemonitor.matchLabels }}
61
+ {{- toYaml .Values.servicemonitor.matchLabels | nindent 6 }}
62
+ {{- else }}
51
63
app : {{ template ".Chart.Name .name" $ }}
64
+ {{- end }}
52
65
{{- end }}
You can’t perform that action at this time.
0 commit comments