Skip to content

Commit

Permalink
Set default value of WATCH_NAMESPACE to installation namespace if nam…
Browse files Browse the repository at this point in the history
…espaceScope is set. (#1006)
  • Loading branch information
smuda committed Apr 17, 2023
1 parent 7fd907c commit 4e96dde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/helm/grafana-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: WATCH_NAMESPACE
{{- if and .Values.namespaceScope (eq .Values.watchNamespaces "") }}
value: {{ .Release.Namespace }}
{{ else }}
value: {{ .Values.watchNamespaces }}
{{- end }}
args:
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:8080
Expand Down

0 comments on commit 4e96dde

Please sign in to comment.