MCPcopy
hub / github.com/kubernetes/client-go / Name

Method Name

tools/leaderelection/healthzadaptor.go:39–41  ·  view source on GitHub ↗

Name returns the name of the health check we are implementing.

()

Source from the content-addressed store, hash-verified

37
38// Name returns the name of the health check we are implementing.
39func (l *HealthzAdaptor) Name() string {
40 return "leaderElection"
41}
42
43// Check is called by the healthz endpoint handler.
44// It fails (returns an error) if we own the lease but had not been able to renew it.

Callers 15

TestLoadFromFileFunction · 0.45
TestErrorReadingFileFunction · 0.45
TestLoadingEmptyMapsFunction · 0.45
TestDuplicateClusterNameFunction · 0.45
TestDuplicateContextNameFunction · 0.45
TestDuplicateUserNameFunction · 0.45
TestMigratingFileFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestLoadFromFileFunction · 0.36
TestErrorReadingFileFunction · 0.36
TestLoadingEmptyMapsFunction · 0.36
TestDuplicateClusterNameFunction · 0.36
TestDuplicateContextNameFunction · 0.36
TestDuplicateUserNameFunction · 0.36
TestMigratingFileFunction · 0.36