[Bug] GrafanaDataSource in same namespace as operator not found when WATCH_NAMESPACE="" #303
Labels
bug/major
Bug with a major severity, occurs often and affects functionality intermitently
bug
Something isn't working
triage/needs-information
Indicates an issue needs more information in order to work on it.
Projects
Describe the bug
grafana-operator can manage Grafana and GrafanaDashboard instances across multiple namespaces. This doc mentions that that there is multi-namespace support for GrafanaDataSource. A GrafanaDataSource has to be deployed in the same namespace as the operator.
If you configure the operator to watch multiple namespaces with
WATCH_NAMESPACE=""
, the operator may still fail to discover a GrafanaDataSource created in the same namespace as the operator.To Reproduce
Steps to reproduce the behavior:
WATCH_NAMESPACE=""
.Expected behavior
The operator should find the GrafanaDataSource and register it in the Grafana instance.
Suspect component/Location where the bug might be occuring
I need to review the code more, but I think the issue is here in
datasource_controller.go
.Runtime (please complete the following information):
Additional context
I encountered this issue in the k8ssandra project I work on. It has Helm charts that can be used to easily reproduce the issue. I would be happy to provide steps if that would help.
The text was updated successfully, but these errors were encountered: