nstemplateset

package
v0.0.0-...-34f3205 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNSTemplateSet

func NewNSTemplateSet(name string, options ...Option) *toolchainv1alpha1.NSTemplateSet

func NewTierTemplateName

func NewTierTemplateName(tier, typeName, revision string) string

NewTierTemplateName: a utility func to generate a TierTemplate name, based on the given tier, type and revision. note: the resource name must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character

func Provisioned

func Provisioned() toolchainv1alpha1.Condition

func Provisioning

func Provisioning() toolchainv1alpha1.Condition

func SpaceRole

func SpaceRole(templateRef string, usernames ...string) toolchainv1alpha1.NSTemplateSetSpaceRole

func Terminating

func Terminating() toolchainv1alpha1.Condition

func UnableToProvision

func UnableToProvision(msg string) toolchainv1alpha1.Condition

func UnableToProvisionClusterResources

func UnableToProvisionClusterResources(msg string) toolchainv1alpha1.Condition

func UnableToProvisionNamespace

func UnableToProvisionNamespace(msg string) toolchainv1alpha1.Condition

func UnableToTerminate

func UnableToTerminate(msg string) toolchainv1alpha1.Condition

func UpdateFailed

func UpdateFailed(msg string) toolchainv1alpha1.Condition

func Updating

func Updating() toolchainv1alpha1.Condition

Types

type Assertion

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

func AssertThatNSTemplateSet

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

func (*Assertion) DoesNotExist

func (a *Assertion) DoesNotExist() *Assertion

func (*Assertion) DoesNotHaveAnnotation

func (a *Assertion) DoesNotHaveAnnotation(key string) *Assertion

func (*Assertion) DoesNotHaveFinalizer

func (a *Assertion) DoesNotHaveFinalizer() *Assertion

func (*Assertion) Exists

func (a *Assertion) Exists() *Assertion

func (*Assertion) Get

func (*Assertion) HasAnnotationWithValue

func (a *Assertion) HasAnnotationWithValue(key, value string) *Assertion

func (*Assertion) HasClusterResourcesNil

func (a *Assertion) HasClusterResourcesNil() *Assertion

func (*Assertion) HasClusterResourcesTemplateRef

func (a *Assertion) HasClusterResourcesTemplateRef(expected string) *Assertion

func (*Assertion) HasConditions

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

func (*Assertion) HasDeletionTimestamp

func (a *Assertion) HasDeletionTimestamp() *Assertion

func (*Assertion) HasFinalizer

func (a *Assertion) HasFinalizer() *Assertion

func (*Assertion) HasNamespaceTemplateRefs

func (a *Assertion) HasNamespaceTemplateRefs(templateRefs ...string) *Assertion

func (*Assertion) HasNoConditions

func (a *Assertion) HasNoConditions() *Assertion

func (*Assertion) HasNoOwnerReferences

func (a *Assertion) HasNoOwnerReferences() *Assertion

func (*Assertion) HasSpaceRoles

func (a *Assertion) HasSpaceRoles(expectedSpaceRoles ...toolchainv1alpha1.NSTemplateSetSpaceRole) *Assertion

func (*Assertion) HasSpecNamespaces

func (a *Assertion) HasSpecNamespaces(types ...string) *Assertion

func (*Assertion) HasTierName

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

type Option

type Option func(*toolchainv1alpha1.NSTemplateSet)

func WithAnnotation

func WithAnnotation(key, value string) Option

func WithDeletionTimestamp

func WithDeletionTimestamp(ts time.Time) Option

func WithFinalizer

func WithFinalizer() Option

func WithNotReadyCondition

func WithNotReadyCondition(reason, message string) Option

func WithReadyCondition

func WithReadyCondition() Option

func WithReferencesFor

func WithReferencesFor(nstemplateTier *toolchainv1alpha1.NSTemplateTier, opts ...TierOption) Option

type TierOption

func WithSpaceRole

func WithSpaceRole(role, username string) TierOption

Jump to

Keyboard shortcuts

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