healthcheck

package
Version: v0.18.9 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

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

Functions

func AddToManager

func AddToManager(mgr manager.Manager) error

AddToManager adds a controller with the default Options.

func CheckDuros added in v0.17.1

func CheckDuros(durosResourceName string) healthcheck.HealthCheck

CheckDuros is a healthCheck function to check Duross

func CheckFirewall added in v0.18.3

func CheckFirewall(firewallResourceName string) healthcheck.HealthCheck

CheckFirewall is a healthCheck function to check Firewalls

func CheckMetalLB added in v0.18.2

func CheckMetalLB() healthcheck.HealthCheck

CheckMetalLB is a healthCheck function to check MetalLBs

func DurosIsHealthy added in v0.17.1

func DurosIsHealthy(duros *durosv1.Duros) (bool, error)

func IsHealthy added in v0.18.2

func IsHealthy(health *v1.ConfigMap) (bool, error)

func RegisterHealthChecks

func RegisterHealthChecks(mgr manager.Manager, opts AddOptions) error

RegisterHealthChecks registers health checks for each extension resource

Types

type AddOptions

type AddOptions struct {
	ControllerConfig config.ControllerConfiguration

	HealthCheckDefaults healthcheck.DefaultAddArgs
}

type DurosHealthChecker added in v0.17.1

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

DurosHealthChecker contains all the information for the Duros HealthCheck

func (*DurosHealthChecker) Check added in v0.17.1

Check executes the health check

func (*DurosHealthChecker) DeepCopy added in v0.17.1

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

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

func (*DurosHealthChecker) InjectSeedClient added in v0.17.1

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

InjectSeedClient injects the seed client

func (*DurosHealthChecker) SetLoggerSuffix added in v0.17.1

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

SetLoggerSuffix injects the logger

type FirewallHealthChecker added in v0.18.3

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

FirewallHealthChecker contains all the information for the Firewall HealthCheck

func (*FirewallHealthChecker) Check added in v0.18.3

Check executes the health check

func (*FirewallHealthChecker) DeepCopy added in v0.18.3

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

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

func (*FirewallHealthChecker) InjectShootClient added in v0.18.3

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

InjectShootClient injects the shoot client

func (*FirewallHealthChecker) SetLoggerSuffix added in v0.18.3

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

SetLoggerSuffix injects the logger

type MetalLBHealthChecker added in v0.18.2

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

MetalLBHealthChecker contains all the information for the MetalLB HealthCheck

func (*MetalLBHealthChecker) Check added in v0.18.2

Check executes the health check

func (*MetalLBHealthChecker) DeepCopy added in v0.18.2

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

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

func (*MetalLBHealthChecker) InjectShootClient added in v0.18.2

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

shootClient injects the shoot client

func (*MetalLBHealthChecker) SetLoggerSuffix added in v0.18.2

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