Documentation
¶
Index ¶
- Constants
- func ConditionTypes() []gardencorev1beta1.ConditionType
- type ExtensionConditions
- type HealthCheck
- type Reconciler
- func (r *Reconciler) AddToManager(mgr manager.Manager, virtualCluster cluster.Cluster) error
- func (r *Reconciler) MapManagedResourceToExtension(_ context.Context, obj client.Object) []reconcile.Request
- func (r *Reconciler) Reconcile(reconcileCtx context.Context, request reconcile.Request) (reconcile.Result, error)
Constants ¶
const ControllerName = "extension-care"
ControllerName is the name of this controller.
Variables ¶
This section is empty.
Functions ¶
func ConditionTypes ¶
func ConditionTypes() []gardencorev1beta1.ConditionType
ConditionTypes returns all extension condition types.
Types ¶
type ExtensionConditions ¶
type ExtensionConditions struct {
// contains filtered or unexported fields
}
ExtensionConditions contains all conditions of the extension status subresource.
func NewExtensionConditions ¶
func NewExtensionConditions(clock clock.Clock, extension *operatorv1alpha1.Extension) ExtensionConditions
NewExtensionConditions returns a new instance of ExtensionConditions. All conditions are retrieved from the given 'status' or newly initialized.
func (ExtensionConditions) ConvertToSlice ¶
func (e ExtensionConditions) ConvertToSlice() []gardencorev1beta1.Condition
ConvertToSlice returns the extension conditions as a slice.
type HealthCheck ¶
type HealthCheck interface {
Check(ctx context.Context, conditions ExtensionConditions) []gardencorev1beta1.Condition
}
HealthCheck is an interface used to perform health checks.
func NewHealth ¶
func NewHealth( extension *operatorv1alpha1.Extension, runtimeClient client.Client, virtualClient client.Client, clock clock.Clock, conditionThresholds map[gardencorev1beta1.ConditionType]time.Duration, gardenNamespace string, ) HealthCheck
NewHealth creates a new Health instance with the given parameters.
type Reconciler ¶
type Reconciler struct {
RuntimeClient client.Client
Config operatorconfigv1alpha1.OperatorConfiguration
Clock clock.Clock
GardenNamespace string
VirtualClient client.Client
}
Reconciler reconciles Extension resources and executes health check operations.
func (*Reconciler) AddToManager ¶
AddToManager adds Reconciler to the given manager.
func (*Reconciler) MapManagedResourceToExtension ¶
func (r *Reconciler) MapManagedResourceToExtension(_ context.Context, obj client.Object) []reconcile.Request
MapManagedResourceToExtension is a handler.MapFunc for mapping a ManagedResource to the owning Extension.