Documentation ¶
Index ¶
- func CheckMachineDeployment(deployment *machinev1alpha1.MachineDeployment) error
- func NewSufficientNodesChecker() healthcheck.HealthCheck
- type DefaultHealthChecker
- func (healthChecker *DefaultHealthChecker) Check(ctx context.Context, request types.NamespacedName) (*healthcheck.SingleCheckResult, error)
- func (healthChecker *DefaultHealthChecker) DeepCopy() healthcheck.HealthCheck
- func (healthChecker *DefaultHealthChecker) InjectSeedClient(seedClient client.Client)
- func (healthChecker *DefaultHealthChecker) InjectShootClient(shootClient client.Client)
- func (healthChecker *DefaultHealthChecker) SetLoggerSuffix(provider, extension string)
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 ¶
func (healthChecker *DefaultHealthChecker) Check(ctx context.Context, request types.NamespacedName) (*healthcheck.SingleCheckResult, error)
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