MCPcopy Index your code
hub / github.com/kubernetes-sigs/controller-runtime / New

Function New

pkg/controller/controller.go:184–186  ·  view source on GitHub ↗

New returns a new Controller registered with the Manager. The Manager will ensure that shared Caches have been synced before the Controller is Started. The name must be unique as it is used to identify the controller in metrics and logs.

(name string, mgr manager.Manager, options Options)

Source from the content-addressed store, hash-verified

182//
183// The name must be unique as it is used to identify the controller in metrics and logs.
184func New(name string, mgr manager.Manager, options Options) (Controller, error) {
185 return NewTyped(name, mgr, options)
186}
187
188// NewTyped returns a new typed controller registered with the Manager,
189//

Callers 6

ExampleNewFunction · 0.92
ExampleControllerFunction · 0.92
controller_test.goFile · 0.92

Calls 1

NewTypedFunction · 0.85

Tested by 3

ExampleNewFunction · 0.74
ExampleControllerFunction · 0.74