Documentation ¶
Index ¶
- Constants
- type Reconciler
- func (r *Reconciler) AddToManager(mgr manager.Manager, gardenCluster, seedCluster cluster.Cluster) error
- func (r *Reconciler) InvalidOperationAnnotationPredicate() predicate.Predicate
- func (r *Reconciler) ObjectPredicate() predicate.Predicate
- func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Constants ¶
View Source
const ControllerName = "shootstate-extensions"
ControllerName is the name of this controller.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct { GardenClient client.Client SeedClient client.Client Config config.ShootStateSyncControllerConfiguration ObjectKind string NewObjectFunc func() client.Object }
Reconciler is used to update data about extensions and any resources required by them in the ShootState.
func (*Reconciler) AddToManager ¶
func (r *Reconciler) AddToManager(mgr manager.Manager, gardenCluster, seedCluster cluster.Cluster) error
AddToManager adds Reconciler to the given manager.
func (*Reconciler) InvalidOperationAnnotationPredicate ¶
func (r *Reconciler) InvalidOperationAnnotationPredicate() predicate.Predicate
InvalidOperationAnnotationPredicate returns a predicate which evaluates to false if the object has one of the following operation annotations: 'wait-for-state', 'restore', 'migrate'.
func (*Reconciler) ObjectPredicate ¶
func (r *Reconciler) ObjectPredicate() predicate.Predicate
ObjectPredicate returns true for 'create' and 'update' events. For updates, it only returns true when the extension state or the extension resources in the status have changed, or when the operation annotation has changed.
Click to show internal directories.
Click to hide internal directories.