worker

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 10 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.

func NewSufficientNodesChecker

func NewSufficientNodesChecker() healthcheck.HealthCheck

NewSufficientNodesChecker is a health check function which checks if there is a sufficient amount of nodes registered in the cluster. Checks if all machines created by the machine deployment joinend the cluster

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 (*DefaultHealthChecker) Check

Check executes the health check

func (*DefaultHealthChecker) DeepCopy

func (healthChecker *DefaultHealthChecker) DeepCopy() healthcheck.HealthCheck

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

func (*DefaultHealthChecker) InjectSeedClient

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

InjectSeedClient injects the seed client

func (*DefaultHealthChecker) InjectShootClient

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

InjectShootClient injects the shoot client

func (*DefaultHealthChecker) SetLoggerSuffix

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

SetLoggerSuffix injects the logger

Jump to

Keyboard shortcuts

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