MCPcopy
hub / github.com/kubernetes-sigs/controller-runtime / EnqueueRequestForOwner

Function EnqueueRequestForOwner

pkg/handler/enqueue_owner.go:50–52  ·  view source on GitHub ↗

EnqueueRequestForOwner enqueues Requests for the Owners of an object. E.g. the object that created the object that was the source of the Event. If a ReplicaSet creates Pods, users may reconcile the ReplicaSet in response to Pod Events using: - a source.Kind Source with Type of Pod. - a handler.e

(scheme *runtime.Scheme, mapper meta.RESTMapper, ownerType client.Object, opts ...OwnerOption)

Source from the content-addressed store, hash-verified

48//
49// - a handler.enqueueRequestForOwner EventHandler with an OwnerType of ReplicaSet and OnlyControllerOwner set to true.
50func EnqueueRequestForOwner(scheme *runtime.Scheme, mapper meta.RESTMapper, ownerType client.Object, opts ...OwnerOption) EventHandler {
51 return TypedEnqueueRequestForOwner[client.Object](scheme, mapper, ownerType, opts...)
52}
53
54// TypedEnqueueRequestForOwner enqueues Requests for the Owners of an object. E.g. the object that created
55// the object that was the source of the Event.

Callers 3

doWatchMethod · 0.92
controller_test.goFile · 0.92

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…