spacerequest

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: 27 Imported by: 0

Documentation

Index

Constants

View Source
const TokenRequestExpirationSeconds = 3650 * 24 * 60 * 60 // 10 years

TokenRequestExpirationSeconds is just a long duration so that the token will not expire for the lifespan of the namespace. This token will provide access only at the namespace scope, so once the namespace is deleted this token will just be invalid.

Variables

This section is empty.

Functions

func MapSubSpaceToSpaceRequest

func MapSubSpaceToSpaceRequest() func(object runtimeclient.Object) []reconcile.Request

MapSubSpaceToSpaceRequest checks whether a space was created from a spacerequest, in case it finds the required labels, triggers an event for the given spacerequest associated with the space.

Types

type Reconciler

type Reconciler struct {
	Client         runtimeclient.Client
	Scheme         *runtime.Scheme
	Namespace      string
	MemberClusters map[string]cluster.Cluster
}

Reconciler reconciles a SpaceRequest object

func (*Reconciler) Reconcile

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

Reconcile ensures that there is a SpaceRequest resource defined in the target member cluster

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, memberClusters map[string]cluster.Cluster) error

SetupWithManager sets up the controller reconciler with the Manager and the given member clusters. Watches SpaceRequests on the member clusters as its primary resources.

Jump to

Keyboard shortcuts

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