Skip to content

Commit

Permalink
fix: trigger on changes on owned object
Browse files Browse the repository at this point in the history
  • Loading branch information
m-yosefpor committed Mar 4, 2022
1 parent d41498b commit 9e80d20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/namespace_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 9e80d20

Please sign in to comment.