spacebindingcleanup

package
v0.0.0-...-ea6e92e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToSpaceBindingByBoundObjectName

func MapToSpaceBindingByBoundObjectName(cl runtimeclient.Client, label string) func(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 (OnlyDeleteAndGenericPredicate) Delete

func (OnlyDeleteAndGenericPredicate) Generic

func (OnlyDeleteAndGenericPredicate) Update

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

func (r *Reconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL