worker

package
v1.41.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 13 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMachineDeployment

func CheckMachineDeployment(deployment *machinev1alpha1.MachineDeployment) error

CheckMachineDeployment checks whether the given MachineDeployment is healthy. A MachineDeployment is considered healthy if its controller observed its current revision and if its desired number of replicas is equal to its updated replicas.

Types

type DefaultHealthChecker

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

DefaultHealthChecker all the information for the Worker HealthCheck. This check assumes that the MachineControllerManager (https://github.com/gardener/machine-controller-manager) has been deployed by the Worker extension controller.

func NewNodesChecker added in v1.5.0

func NewNodesChecker() *DefaultHealthChecker

NewNodesChecker is a health check function which performs certain checks about the nodes registered in the cluster. It implements the healthcheck.HealthCheck interface.

func (*DefaultHealthChecker) Check

Check executes the health check.

func (*DefaultHealthChecker) DeepCopy

DeepCopy clones the healthCheck struct by making a copy and returning the pointer to that new copy.

func (*DefaultHealthChecker) InjectSeedClient

func (h *DefaultHealthChecker) InjectSeedClient(seedClient client.Client)

InjectSeedClient injects the seed client.

func (*DefaultHealthChecker) InjectShootClient

func (h *DefaultHealthChecker) InjectShootClient(shootClient client.Client)

InjectShootClient injects the shoot client.

func (*DefaultHealthChecker) SetLoggerSuffix

func (h *DefaultHealthChecker) SetLoggerSuffix(provider, extension string)

SetLoggerSuffix injects the logger.

func (*DefaultHealthChecker) WithScaleDownProgressingThreshold added in v1.5.0

func (h *DefaultHealthChecker) WithScaleDownProgressingThreshold(d time.Duration) *DefaultHealthChecker

WithScaleDownProgressingThreshold sets the scaleDownProgressingThreshold property.

func (*DefaultHealthChecker) WithScaleUpProgressingThreshold added in v1.5.0

func (h *DefaultHealthChecker) WithScaleUpProgressingThreshold(d time.Duration) *DefaultHealthChecker

WithScaleUpProgressingThreshold sets the scaleUpProgressingThreshold property.

Jump to

Keyboard shortcuts

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