diff --git a/charts/kubelet-csr-approver/templates/servicemonitor.yaml b/charts/kubelet-csr-approver/templates/servicemonitor.yaml index ac52319..7c5b78b 100644 --- a/charts/kubelet-csr-approver/templates/servicemonitor.yaml +++ b/charts/kubelet-csr-approver/templates/servicemonitor.yaml @@ -17,7 +17,7 @@ spec: jobLabel: {{ .Release.Name }} namespaceSelector: matchNames: - - {{ .Release.Namespace }} + - {{ include "kubelet-csr-approver.namespace" . }} selector: matchLabels: {{- include "kubelet-csr-approver.selectorLabels" . | nindent 6 }}