Documentation
¶
Index ¶
Constants ¶
View Source
const ControllerName = "shootstate-finalizer"
ControllerName is the name of the controller.
View Source
const FinalizerName = "core.gardener.cloud/shootstate"
FinalizerName is the finalizer used by the controller.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
// Client is the API Server client used by the Reconciler.
Client client.Client
// Config is the configuration used by the Reconciler.
Config controllermanagerconfigv1alpha1.ShootStateControllerConfiguration
}
Reconciler reconciles ShootState objects and ensures the finalizer exists during "Migrate" and "Restore" phases of Shoot migration to another Seed.
func (*Reconciler) AddToManager ¶
func (r *Reconciler) AddToManager(mgr manager.Manager) error
AddToManager adds the Reconciler to the given manager.
func (*Reconciler) MapShootToShootState ¶
func (r *Reconciler) MapShootToShootState(log logr.Logger) handler.MapFunc
MapShootToShootState maps a Shoot object to ShootState reconciliation request.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reconciles ShootStates.
func (*Reconciler) ShootPredicates ¶
func (r *Reconciler) ShootPredicates() predicate.Predicate
ShootPredicates returns predicates for Shoot requests acceptance.
Click to show internal directories.
Click to hide internal directories.