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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNamespace

func NewNamespace(spacename string) *corev1.Namespace

func NewSpaceRequest

func NewSpaceRequest(name, namespace string, options ...Option) *toolchainv1alpha1.SpaceRequest

Types

type Assertion

type Assertion struct {
	// contains filtered or unexported fields
}

func AssertThatSpaceRequest

func AssertThatSpaceRequest(t test.T, namespace, name string, client runtimeclient.Client) *Assertion

AssertThatSpaceRequest helper func to begin with the assertions on a SpaceRequests

func (*Assertion) DoesNotExist

func (a *Assertion) DoesNotExist() *Assertion

func (*Assertion) Exists

func (a *Assertion) Exists() *Assertion

func (*Assertion) HasConditions

func (a *Assertion) HasConditions(expected ...toolchainv1alpha1.Condition) *Assertion

func (*Assertion) HasDisableInheritance

func (a *Assertion) HasDisableInheritance(disableInheritance bool) *Assertion

func (*Assertion) HasFinalizer

func (a *Assertion) HasFinalizer() *Assertion

func (*Assertion) HasNamespaceAccess

func (a *Assertion) HasNamespaceAccess(namespaceAccess []toolchainv1alpha1.NamespaceAccess) *Assertion

func (*Assertion) HasNoFinalizers

func (a *Assertion) HasNoFinalizers() *Assertion

func (*Assertion) HasSpecTargetClusterRoles

func (a *Assertion) HasSpecTargetClusterRoles(roles []string) *Assertion

func (*Assertion) HasSpecTierName

func (a *Assertion) HasSpecTierName(tierName string) *Assertion

func (*Assertion) HasStatusTargetClusterURL

func (a *Assertion) HasStatusTargetClusterURL(targetCluster string) *Assertion

func (*Assertion) HasTargetClusterURL

func (a *Assertion) HasTargetClusterURL(targetCluster string) *Assertion

type Option

type Option func(spaceRequest *toolchainv1alpha1.SpaceRequest)

func WithDeletionTimestamp

func WithDeletionTimestamp() Option

func WithDisableInheritance

func WithDisableInheritance(disableInheritance bool) Option

func WithFinalizer

func WithFinalizer() Option

func WithStatusNamespaceAccess

func WithStatusNamespaceAccess(namespaceAccess toolchainv1alpha1.NamespaceAccess) Option

func WithStatusTargetClusterURL

func WithStatusTargetClusterURL(targetClusterURL string) Option

func WithTargetClusterRoles

func WithTargetClusterRoles(targetClusterRoles []string) Option

func WithTierName

func WithTierName(tierName string) Option

Jump to

Keyboard shortcuts

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