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

Method Add

pkg/manager/manager.go:62–62  ·  view source on GitHub ↗

Add will set requested dependencies on the component, and cause the component to be started when Start is called. Depending on if a Runnable implements LeaderElectionRunnable interface, a Runnable can be run in either non-leaderelection mode (always running) or leader election mode (managed by leade

(Runnable)

Source from the content-addressed store, hash-verified

60 // Depending on if a Runnable implements LeaderElectionRunnable interface, a Runnable can be run in either
61 // non-leaderelection mode (always running) or leader election mode (managed by leader election if enabled).
62 Add(Runnable) error
63
64 // Elected is closed when this manager is elected leader of a group of
65 // managers, either because it won a leader election or because no leader

Callers 15

ExampleFunction · 0.95
runFunction · 0.95
store_test.goFile · 0.65
FetchMethod · 0.65
SideloadMethod · 0.65
informers_test.goFile · 0.65
ApplyToListMethod · 0.65
ApplyToListMethod · 0.65
AddMethod · 0.65
client_test.goFile · 0.65
NewResourceLockFunction · 0.65

Implementers 1

controllerManagerpkg/manager/internal.go

Calls

no outgoing calls

Tested by 15

ExampleFunction · 0.76
BenchmarkAddGetDoneFunction · 0.52
BenchmarkAddOnlyFunction · 0.52
writeCertsFunction · 0.52
AddMethod · 0.52
runTestsFunction · 0.52
ExampleManager_addFunction · 0.52
ExampleFuncsFunction · 0.52