healthcheck

package
v0.0.0-...-da54f9a Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// DefaultAddOptions are the default DefaultAddArgs for AddToManager.
	DefaultAddOptions = healthcheck.DefaultAddArgs{
		HealthCheckConfig: apisconfig.HealthCheckConfig{SyncPeriod: metav1.Duration{Duration: defaultSyncPeriod}},
	}
)

Functions

func AddToManager

func AddToManager(mgr manager.Manager) error

AddToManager adds a controller with the default Options.

func RegisterHealthChecks

func RegisterHealthChecks(mgr manager.Manager, opts healthcheck.DefaultAddArgs) error

RegisterHealthChecks registers health checks for each extension resource HealthChecks are grouped by extension (e.g worker), extension.type (e.g aws) and Health Check Type (e.g SystemComponentsHealthy)

Types

type RegistryWrapperHealthChecker

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

RegistryWrapperHealthChecker contains all the information for the HealthCheck wrapper

func NewRegistryWrapperHealthChecker

func NewRegistryWrapperHealthChecker(inner healthcheck.HealthCheck) *RegistryWrapperHealthChecker

NewRegistryWrapperHealthChecker creates a new RegistryWrapperHealthChecker.

func (*RegistryWrapperHealthChecker) Check

Check executes the health check

func (*RegistryWrapperHealthChecker) DeepCopy

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

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

func (*RegistryWrapperHealthChecker) InjectSeedClient

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

InjectSeedClient injects the seed client

func (*RegistryWrapperHealthChecker) SetLoggerSuffix

func (healthChecker *RegistryWrapperHealthChecker) 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