healthz

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheSyncHealthz

func NewCacheSyncHealthz(cacheSyncWaiter cacheSyncWaiter) healthz.Checker

NewCacheSyncHealthz returns a new healthz.Checker that will pass only if all informers in the given cacheSyncWaiter sync.

func NewHeartbeatHealthz

func NewHeartbeatHealthz(ctx context.Context,
	reader client.Reader,
	expiration time.Duration,
	namespace, loadBalancerMachineName string) healthz.Checker

NewHeartbeatHealthz returns a new healthz.Checker that checks the condition heartbeat of the LBM that are written by the yawollet. This way we can check if we have a healthy connection to the API-Server, both writing (updating the heartbeats), and reading (retrieving the updated heartbeats), without additional requests to the API Server.

func NewLoadBalancerRevisionHealthz

func NewLoadBalancerRevisionHealthz(
	ctx context.Context,
	reader client.Reader,
	namespace, loadBalancerName, loadBalancerMachineName string,
) healthz.Checker

NewLoadBalancerRevisionHealthz returns a new healthz.Checker that will pass if the LoadBalancerMachine belongs to the latest revision of the corresponding LoadBalancer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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