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

Function Kind

pkg/source/source.go:76–83  ·  view source on GitHub ↗

Kind creates a KindSource with the given cache provider.

(
	cache cache.Cache,
	obj object,
	handler handler.TypedEventHandler[object, reconcile.Request],
	predicates ...predicate.TypedPredicate[object],
)

Source from the content-addressed store, hash-verified

74
75// Kind creates a KindSource with the given cache provider.
76func Kind[object client.Object](
77 cache cache.Cache,
78 obj object,
79 handler handler.TypedEventHandler[object, reconcile.Request],
80 predicates ...predicate.TypedPredicate[object],
81) SyncingSource {
82 return TypedKind(cache, obj, handler, predicates...)
83}
84
85// TypedKind creates a KindSource with the given cache provider.
86func TypedKind[object client.Object, request comparable](

Calls 1

TypedKindFunction · 0.85

Tested by 8

ExampleControllerFunction · 0.74
ExampleNewUnmanagedFunction · 0.74
ExampleKindFunction · 0.74
ExampleFuncsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…