Documentation ¶
Index ¶
- Variables
- func AddToManager(mgr manager.Manager) error
- func CheckDuros(durosResourceName string) healthcheck.HealthCheck
- func DurosIsHealthy(duros *durosv1.Duros) (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)
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 ¶
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 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
Click to show internal directories.
Click to hide internal directories.