health

package
v0.6.4-cnv-1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadinessChecker

type ReadinessChecker struct {
	// contains filtered or unexported fields
}

func NewReadinessChecker

func NewReadinessChecker(clientset kubecli.KubevirtClient, host string, config *config.ClusterConfig) *ReadinessChecker

func (*ReadinessChecker) HeartBeat

func (l *ReadinessChecker) HeartBeat(interval time.Duration, maxErrorsPerInterval uint64, stopCh chan struct{})

HeartBeat take a heartbeat inverval, a maximum of non-userfacing errors which are allowed to happen and a stop channel to stop the heartbeat updates. It periodically performs some health checks and updates the kubevirt.io/schedulable according to its checks. Further it sets a timestamp on the node so that cluster components can see when it last updated the node.

Jump to

Keyboard shortcuts

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