Documentation ¶
Index ¶
- Variables
- func AddToManager(mgr manager.Manager) error
- func CheckDuros(durosResourceName string) healthcheck.HealthCheck
- func CheckFirewall(firewallResourceName string) healthcheck.HealthCheck
- func CheckMetalLB() healthcheck.HealthCheck
- func DurosIsHealthy(duros *durosv1.Duros) (bool, error)
- func IsHealthy(health *v1.ConfigMap) (bool, error)
- func RegisterHealthChecks(mgr manager.Manager, opts AddOptions) error
- type AddOptions
- type DurosHealthChecker
- func (healthChecker *DurosHealthChecker) Check(ctx context.Context, request types.NamespacedName) (*healthcheck.SingleCheckResult, error)
- func (healthChecker *DurosHealthChecker) DeepCopy() healthcheck.HealthCheck
- func (healthChecker *DurosHealthChecker) InjectSeedClient(seedClient client.Client)
- func (healthChecker *DurosHealthChecker) SetLoggerSuffix(provider, extension string)
- type FirewallHealthChecker
- func (healthChecker *FirewallHealthChecker) Check(ctx context.Context, request types.NamespacedName) (*healthcheck.SingleCheckResult, error)
- func (healthChecker *FirewallHealthChecker) DeepCopy() healthcheck.HealthCheck
- func (healthChecker *FirewallHealthChecker) InjectShootClient(shootClient client.Client)
- func (healthChecker *FirewallHealthChecker) SetLoggerSuffix(provider, extension string)
- type MetalLBHealthChecker
- func (healthChecker *MetalLBHealthChecker) Check(ctx context.Context, request types.NamespacedName) (*healthcheck.SingleCheckResult, error)
- func (healthChecker *MetalLBHealthChecker) DeepCopy() healthcheck.HealthCheck
- func (healthChecker *MetalLBHealthChecker) InjectShootClient(shootClient client.Client)
- func (healthChecker *MetalLBHealthChecker) SetLoggerSuffix(provider, extension string)
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultAddOptions are the default DefaultAddArgs for AddToManager. DefaultAddOptions = AddOptions{ HealthCheckDefaults: healthcheck.DefaultAddArgs{ HealthCheckConfig: healthcheckconfig.HealthCheckConfig{SyncPeriod: metav1.Duration{Duration: defaultSyncPeriod}}, }, } )
Functions ¶
func AddToManager ¶
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 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
func (healthChecker *DurosHealthChecker) Check(ctx context.Context, request types.NamespacedName) (*healthcheck.SingleCheckResult, error)
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
func (healthChecker *FirewallHealthChecker) Check(ctx context.Context, request types.NamespacedName) (*healthcheck.SingleCheckResult, error)
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
func (healthChecker *MetalLBHealthChecker) Check(ctx context.Context, request types.NamespacedName) (*healthcheck.SingleCheckResult, error)
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