Documentation ¶
Index ¶
- Variables
- func AddToManager(ctx context.Context, mgr manager.Manager) error
- func RegisterHealthChecks(ctx context.Context, mgr manager.Manager, opts healthcheck.DefaultAddArgs) error
- type BackendHealthChecker
- func (h *BackendHealthChecker) Check(ctx context.Context, request types.NamespacedName) (*healthcheck.SingleCheckResult, error)
- func (h *BackendHealthChecker) DeepCopy() healthcheck.HealthCheck
- func (h *BackendHealthChecker) InjectSeedClient(seedClient client.Client)
- func (h *BackendHealthChecker) SetLoggerSuffix(provider, extension string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultAddOptions contains configuration for the health check controller. DefaultAddOptions = healthcheck.DefaultAddArgs{ HealthCheckConfig: extensionsconfig.HealthCheckConfig{SyncPeriod: metav1.Duration{Duration: defaultSyncPeriod}}, } )
Functions ¶
func AddToManager ¶
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 BackendHealthChecker ¶
type BackendHealthChecker struct {
// contains filtered or unexported fields
}
func (*BackendHealthChecker) Check ¶
func (h *BackendHealthChecker) Check(ctx context.Context, request types.NamespacedName) (*healthcheck.SingleCheckResult, error)
func (*BackendHealthChecker) DeepCopy ¶
func (h *BackendHealthChecker) DeepCopy() healthcheck.HealthCheck
func (*BackendHealthChecker) InjectSeedClient ¶ added in v0.1.2
func (h *BackendHealthChecker) InjectSeedClient(seedClient client.Client)
InjectSeedClient injects the seed client
func (*BackendHealthChecker) SetLoggerSuffix ¶
func (h *BackendHealthChecker) SetLoggerSuffix(provider, extension string)
Click to show internal directories.
Click to hide internal directories.