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 IssuerWrapperHealthChecker
- func (healthChecker *IssuerWrapperHealthChecker) Check(ctx context.Context, request types.NamespacedName) (*healthcheck.SingleCheckResult, error)
- func (healthChecker *IssuerWrapperHealthChecker) DeepCopy() healthcheck.HealthCheck
- func (healthChecker *IssuerWrapperHealthChecker) InjectSeedClient(seedClient client.Client)
- func (healthChecker *IssuerWrapperHealthChecker) SetLoggerSuffix(provider, extension string)
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 ¶
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
func (healthChecker *IssuerWrapperHealthChecker) Check(ctx context.Context, request types.NamespacedName) (*healthcheck.SingleCheckResult, error)
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
Click to show internal directories.
Click to hide internal directories.