Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClockHealthAdaptor ¶
Types ¶
type Server ¶
type Server struct { // LeaderHealthzAdaptor is public so that it can be retrieved by the caller // and used as the value for `LeaderElectionConfig.Watchdog` when // initializing the LeaderElector. LeaderHealthzAdaptor *leaderelection.HealthzAdaptor // contains filtered or unexported fields }
Server responds to HTTP requests to a /livez endpoint and responds with an error if the LeaderElector has exited or has not observed the LeaderElectionRecord for a given amount of time.
func NewServer ¶
NewServer creates a new healthz.Server. The supplied leaderElectionHealthzAdaptorTimeout controls how long after the leader lease time, the leader election will be considered to have failed.
Click to show internal directories.
Click to hide internal directories.