Documentation ¶
Index ¶
- Constants
- Variables
- type HealthCheck
- type NewHealthCheckFunc
- type Reconciler
- func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager) error
- func (r *Reconciler) GardenPredicate() predicate.Predicate
- func (r *Reconciler) MapManagedResourceToGarden(ctx context.Context, log logr.Logger, _ client.Reader, _ client.Object) []reconcile.Request
- func (r *Reconciler) Reconcile(reconcileCtx context.Context, req reconcile.Request) (reconcile.Result, error)
Constants ¶
View Source
const ControllerName = "garden-care"
ControllerName is the name of this controller.
Variables ¶
View Source
var (
// NewHealthCheck is used to create a new Health check instance.
NewHealthCheck = defaultNewHealthCheck
)
Functions ¶
This section is empty.
Types ¶
type HealthCheck ¶
type HealthCheck interface {
CheckGarden(ctx context.Context, condition []gardencorev1beta1.Condition, thresholdMappings map[gardencorev1beta1.ConditionType]time.Duration, lastOperation *gardencorev1beta1.LastOperation) []gardencorev1beta1.Condition
}
HealthCheck is an interface used to perform health checks.
type NewHealthCheckFunc ¶
type NewHealthCheckFunc func(*operatorv1alpha1.Garden, client.Client, kubernetes.Interface, clock.Clock, string) HealthCheck
NewHealthCheckFunc is a function used to create a new instance for performing health checks.
type Reconciler ¶
type Reconciler struct { RuntimeClient client.Client Config config.OperatorConfiguration Clock clock.Clock GardenClientMap clientmap.ClientMap GardenNamespace string }
Reconciler reconciles garden resources and executes health check operations.
func (*Reconciler) AddToManager ¶
AddToManager adds Reconciler to the given manager.
func (*Reconciler) GardenPredicate ¶
func (r *Reconciler) GardenPredicate() predicate.Predicate
GardenPredicate is a predicate which returns 'true' for create events, and for update events in case the garden was successfully reconciled.
Click to show internal directories.
Click to hide internal directories.