healthchecker

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

type HealthChecker interface {
	IsHealthy(server *url.URL) bool
	UpdateLastKubeletLeaseReqTime(time.Time)
	Run()
}

HealthChecker is an interface for checking healthy stats of server

func NewFakeChecker

func NewFakeChecker(healthy bool, settings map[string]int) HealthChecker

NewFakeChecker creates a fake checker

func NewHealthChecker

func NewHealthChecker(cfg *config.YurtHubConfiguration, tp transport.Interface, stopCh <-chan struct{}) (HealthChecker, error)

NewHealthChecker create an HealthChecker for servers

type NodeLease

type NodeLease interface {
	Update(base *coordinationv1.Lease) (*coordinationv1.Lease, error)
}

func NewNodeLease

func NewNodeLease(client clientset.Interface, holderIdentity string, leaseDurationSeconds int32, failedRetry int) NodeLease

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL