Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FinalizerName is the selfhostedshootexposure controller finalizer. FinalizerName = "extensions.gardener.cloud/selfhostedshootexposure" // ControllerName is the name of the controller ControllerName = "selfhostedshootexposure" )
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new SelfHostedShootExposure Controller and adds it to the Manager. and Start it when the Manager is Started.
func DefaultPredicates ¶
DefaultPredicates returns the default predicates for a selfhostedshootexposure reconciler.
func NewReconciler ¶
func NewReconciler(mgr manager.Manager, actuator Actuator) reconcile.Reconciler
NewReconciler creates a new reconcile.Reconciler that reconciles selfhostedshootexposure resources of Gardener's `extensions.gardener.cloud` API group.
Types ¶
type Actuator ¶
type Actuator interface {
// Reconcile reconciles the [extensionsv1alpha1.SelfHostedShootExposure] resource.
//
// Implementations should ensure that the self-hosted shoot exposure is created or
// updated in order to reach its desired state.
Reconcile(context.Context, logr.Logger, *extensionsv1alpha1.SelfHostedShootExposure, *extensionscontroller.Cluster) ([]corev1.LoadBalancerIngress, error)
// Delete is invoked when the [extensionsv1alpha1.SelfHostedShootExposure] resource is
// deleted.
//
// Implementations should take care of cleaning up any resources created
// by the extension during its lifecycle.
//
// Implementations must wait until all resources managed by the
// extension have been gracefully cleaned up.
Delete(context.Context, logr.Logger, *extensionsv1alpha1.SelfHostedShootExposure, *extensionscontroller.Cluster) error
// ForceDelete is invoked when the [extensionsv1alpha1.SelfHostedShootExposure] resource
// is being deleted in a forceful manner.
//
// Implementations should take care of unblocking the deletion flow by
// attempting to clean up any resources created by the extension, and
// also skip waiting for external resources, if they cannot be deleted
// gracefully.
//
// If some resources managed by the extension implementation cannot be
// deleted gracefully, this method should still succeed, even if some
// resources are orphaned.
ForceDelete(context.Context, logr.Logger, *extensionsv1alpha1.SelfHostedShootExposure, *extensionscontroller.Cluster) error
}
Actuator acts upon extensionsv1alpha1.SelfHostedShootExposure resources.
type AddArgs ¶
type AddArgs struct {
// Actuator is a selfhostedshootexposure actuator.
Actuator Actuator
// ControllerOptions are the controller options used for creating a controller.
// The options.Reconciler is always overridden with a reconciler created from the
// given actuator.
ControllerOptions controller.Options
// Predicates are the predicates to use.
// If unset, GenerationChangedPredicate will be used.
Predicates []predicate.Predicate
// Type is the type of the resource considered for reconciliation.
Type string
// ExtensionClasses defines the extension classes this controller is responsible for.
ExtensionClasses []extensionsv1alpha1.ExtensionClass
}
AddArgs are arguments for adding a selfhostedshootexposure controller to a manager.
Click to show internal directories.
Click to hide internal directories.