healthcheck

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 11 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 struct {
	// contains filtered or unexported fields
}

func NewHealthChecker

func NewHealthChecker(apiReader client.Reader, listOpts []client.ListOption, logger logr.Logger) *HealthChecker

func (*HealthChecker) CheckIngressLoadBalancer

func (hc *HealthChecker) CheckIngressLoadBalancer() (string, error)

func (*HealthChecker) CheckPodsRollOut

func (hc *HealthChecker) CheckPodsRollOut(desiredImage string) (PodRolloutStatus, error)

CheckPodsRollOut checks if pods are running with new image. Deprecated: It is maintained only for purpose of old migration code. CheckReplicaSetRollout should be sufficient for other cases.

func (*HealthChecker) CheckReplicaSetRollout added in v1.19.0

func (hc *HealthChecker) CheckReplicaSetRollout(name, namespace string) (PodRolloutStatus, error)

CheckReplicaSetRollout checks if new deployment version was already rolled out.

func (*HealthChecker) CheckServiceLoadBalancer

func (hc *HealthChecker) CheckServiceLoadBalancer() (string, error)

type PodRolloutStatus

type PodRolloutStatus struct {
	Replicas        int32
	UpdatedReplicas int32
}

Jump to

Keyboard shortcuts

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