chart: fix reloader-namespaceSelector helper comment

The helper only emits namespaceSelector when watchGlobally is true
(matches values.yaml and the chart README). The old comment said the
opposite and made the condition look inverted.

Fixes #1188

Signed-off-by: Dean Chen <862469039@qq.com>
This commit is contained in:
Dean Chen
2026-08-09 21:47:04 +05:00
parent d455bbd47a
commit 05289934d2
@@ -80,7 +80,8 @@ meta.helm.sh/release-name: {{ .Release.Name | quote }}
{{- end -}}
{{/*
Create the namespace selector if it does not watch globally
Emit reloader.namespaceSelector when watching globally (label filter on namespaces).
Only used when reloader.watchGlobally is true; see chart README / values comments.
*/}}
{{- define "reloader-namespaceSelector" -}}
{{- if and .Values.reloader.watchGlobally .Values.reloader.namespaceSelector -}}