grafana / grafana-operator

An operator for Grafana that installs and manages Grafana instances, Dashboards and Datasources through Kubernetes/OpenShift CRs
https://grafana.github.io/grafana-operator/
Apache License 2.0
863 stars 384 forks source link

[Bug] Deployment Reconcile only runs at startup #1573

Closed mikel-carcoba-klarrio closed 3 months ago

mikel-carcoba-klarrio commented 3 months ago

Describe the bug The deployments are only reconciled at the beginning. Version v5.9.0

To Reproduce Deleting a deployment manually. The operator is not going to recreate it

Expected behavior Once a manual deletion happened the deployment should be recreated

Suspect component/Location where the bug might be occurring https://github.com/grafana/grafana-operator/blob/0c7cf92ee490bbaff2047fcbe0b0ed0a56622760/controllers/grafana_controller.go#L204

ak185158 commented 3 months ago

Experiencing the same issue. Grafana deployment isn't recreated if instance is destroyed even though grafana manifest exists.

theSuess commented 3 months ago

Thanks for reporting this. It appears that the conditions for the owns directive got more rigid. #1574 should fix this