Help! Getting an issue in K8s Watch System.
I added Owns() so the reconciler should watch Deployment status changes.
But the reconcile loop is not triggered when the Deployment updates while it is working fine for the primary resource. RBAC permission and Owner References are correct as well.
Any idea what might be causing this?
ctrl.NewControllerManagedBy(mgr).
For(&v1alpha1.Workflow{},
builder.WithPredicates(predicate.GenerationChangedPredicate{})).
Owns(&appsv1.Deployment{}). // Added this
Complete(r)