healthcheck

package
v1.42.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 19 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(ctx context.Context, mgr manager.Manager) error

AddToManager adds a controller with the default Options.

func RegisterHealthChecks

func RegisterHealthChecks(ctx context.Context, 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 IssuerWrapperHealthChecker added in v1.11.0

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

IssuerWrapperHealthChecker contains all the information for the HealthCheck wrapper

func NewIssuerWrapperHealthChecker added in v1.11.0

func NewIssuerWrapperHealthChecker(inner healthcheck.HealthCheck) *IssuerWrapperHealthChecker

func (*IssuerWrapperHealthChecker) Check added in v1.11.0

Check executes the health check

func (*IssuerWrapperHealthChecker) DeepCopy added in v1.11.0

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

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

func (*IssuerWrapperHealthChecker) InjectSeedClient added in v1.11.0

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

InjectSeedClient injects the seed client

func (*IssuerWrapperHealthChecker) SetLoggerSuffix added in v1.11.0

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