workloads

package
v0.0.0-...-1c213c1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrgNameLabel    = "cloudfoundry.org/org-name"
	SpaceNameLabel  = "cloudfoundry.org/space-name"
	OrgEntityType   = "org"
	SpaceEntityType = "space"
)
View Source
const (
	AppEntityType = "app"
)

Variables

This section is empty.

Functions

func NewSubnamespaceAnchorHandler

func NewSubnamespaceAnchorHandler(
	logger logr.Logger,
	duplicateValidator NameValidator,
	nameLabel string,
	duplicateError webhooks.ValidationErrorCode,
) subnamespaceAnchorHandler

Types

type CFAppValidation

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

func NewCFAppValidation

func NewCFAppValidation(duplicateValidator NameValidator) *CFAppValidation

func (*CFAppValidation) Handle

func (*CFAppValidation) InjectDecoder

func (v *CFAppValidation) InjectDecoder(d *admission.Decoder) error

func (*CFAppValidation) SetupWebhookWithManager

func (v *CFAppValidation) SetupWebhookWithManager(mgr ctrl.Manager) error

type NameValidator

type NameValidator interface {
	ValidateCreate(ctx context.Context, logger logr.Logger, namespace, newName string) error
	ValidateUpdate(ctx context.Context, logger logr.Logger, namespace, oldName, newName string) error
	ValidateDelete(ctx context.Context, logger logr.Logger, namespace, oldName string) error
}

type SubnamespaceAnchorValidation

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

func NewSubnamespaceAnchorValidation

func NewSubnamespaceAnchorValidation(duplicateOrgValidator, duplicateSpaceValidator NameValidator) *SubnamespaceAnchorValidation

func (*SubnamespaceAnchorValidation) Handle

func (*SubnamespaceAnchorValidation) InjectDecoder

func (v *SubnamespaceAnchorValidation) InjectDecoder(d *admission.Decoder) error

Allow mgr to inject decoder

func (*SubnamespaceAnchorValidation) SetupWebhookWithManager

func (v *SubnamespaceAnchorValidation) SetupWebhookWithManager(mgr ctrl.Manager) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
integration

Jump to

Keyboard shortcuts

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