Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapToSpaceBindingByBoundObjectName ¶
func MapToSpaceBindingByBoundObjectName(cl runtimeclient.Client, label string) func(ctx context.Context, object runtimeclient.Object) []reconcile.Request
MapToSpaceBindingByBoundObjectName maps the bound object (MUR or Space) to the associated SpaceBindings. The correct SpaceBindings are listed using the given label whose value should equal to the object's name.
Types ¶
type OnlyDeleteAndGenericPredicate ¶
type OnlyDeleteAndGenericPredicate struct { }
func (OnlyDeleteAndGenericPredicate) Create ¶
func (p OnlyDeleteAndGenericPredicate) Create(_ event.CreateEvent) bool
func (OnlyDeleteAndGenericPredicate) Delete ¶
func (p OnlyDeleteAndGenericPredicate) Delete(_ event.DeleteEvent) bool
func (OnlyDeleteAndGenericPredicate) Generic ¶
func (p OnlyDeleteAndGenericPredicate) Generic(_ event.GenericEvent) bool
func (OnlyDeleteAndGenericPredicate) Update ¶
func (p OnlyDeleteAndGenericPredicate) Update(_ event.UpdateEvent) bool
type Reconciler ¶
type Reconciler struct { runtimeclient.Client Scheme *runtime.Scheme Namespace string MemberClusters map[string]cluster.Cluster }
Reconciler reconciles a SpaceBinding object
func (*Reconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type SpaceBindingRequestAssociated ¶
type SpaceBindingRequestAssociated struct {
// contains filtered or unexported fields
}
SpaceBindingRequestAssociated is a wrapper that holds details regarding SB, and it's SBR if there is any associated.
Click to show internal directories.
Click to hide internal directories.