Troy Connor

Results 47 comments of Troy Connor

This issue may be hard to diagnose and reproduce without knowing exactly the intentions are with what you are trying to do. Is this namespace you are watching, get created...

> So the CustomResource creates Namespaces and puts owner references on it. Who is the owner of the namespace? The controller or the CustomResource? If it is the latter, then...

From the docs: >GenerationChangedPredicate implements a default update predicate function on Generation change. This predicate will skip update events that have no change in the object's metadata.generation field. The metadata.generation...

From the docs: > // Owns defines types of Objects being *generated* by the ControllerManagedBy, and configures the ControllerManagedBy to // respond to create / delete / update events by...

> In this, CustomResource is re-queued, when controller gets an event from CRB or Namespace changes. But the drawback here is, CustomResource will get stuck in a loop with itself,...

You can write your own handler to do the reconcile requests for the events you have for the crb and the namespace. https://github.com/kubernetes-sigs/controller-runtime/blob/b9f29826ee83985ed8db01918e6c9bbacbc53913/pkg/handler/enqueue_mapped.go#L41 After you write the handler, you can...

> I understand that it does at the moment, but change of the Owner object shouldnt be checked in events coming from Owned objects, no matter what predicate I put...