Name returns the name of the health check we are implementing.
()
| 37 | |
| 38 | // Name returns the name of the health check we are implementing. |
| 39 | func (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. |
no outgoing calls