From 9e80d204b3f7d3086eb04806070a64d227bdffb7 Mon Sep 17 00:00:00 2001 From: Mohammad Yosefpor Date: Fri, 4 Mar 2022 15:41:33 +0330 Subject: [PATCH] fix: trigger on changes on owned object --- controllers/namespace_controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/namespace_controller.go b/controllers/namespace_controller.go index 3913f15..1853c12 100644 --- a/controllers/namespace_controller.go +++ b/controllers/namespace_controller.go @@ -173,6 +173,7 @@ func (r *NamespaceReconciler) Reconcile(ctx context.Context, req ctrl.Request) ( func (r *NamespaceReconciler) SetupWithManager(mgr ctrl.Manager) error { return ctrl.NewControllerManagedBy(mgr). For(&corev1.Namespace{}). + Owns(&grafanav1alpha1.GrafanaDataSource{}). Complete(r) }