worker

package
v1.7.1-0...-23dd39d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 12 Imported by: 0

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

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

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

WithScaleDownProgressingThreshold sets the scaleDownProgressingThreshold property.

func (*DefaultHealthChecker) WithScaleUpProgressingThreshold

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