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

Function applyGetOptions

pkg/cache/informer_cache.go:135–141  ·  view source on GitHub ↗
(opts ...InformerGetOption)

Source from the content-addressed store, hash-verified

133}
134
135func applyGetOptions(opts ...InformerGetOption) *internal.GetOptions {
136 cfg := &InformerGetOptions{}
137 for _, opt := range opts {
138 opt(cfg)
139 }
140 return (*internal.GetOptions)(cfg)
141}
142
143// GetInformerForKind returns the informer for the GroupVersionKind. If no informer exists, one will be started.
144func (ic *informerCache) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind, opts ...InformerGetOption) (Informer, error) {

Callers 2

GetInformerForKindMethod · 0.85
GetInformerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…