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

Function OnlyControllerOwner

pkg/handler/enqueue_owner.go:79–83  ·  view source on GitHub ↗

OnlyControllerOwner if provided will only look at the first OwnerReference with Controller: true.

()

Source from the content-addressed store, hash-verified

77
78// OnlyControllerOwner if provided will only look at the first OwnerReference with Controller: true.
79func OnlyControllerOwner() OwnerOption {
80 return func(e enqueueRequestForOwnerInterface) {
81 e.setIsController(true)
82 }
83}
84
85type enqueueRequestForOwnerInterface interface {
86 setIsController(bool)

Callers 5

doWatchMethod · 0.92
controller_test.goFile · 0.92
mainFunction · 0.92

Calls 1

setIsControllerMethod · 0.65

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…