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) 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) 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
Click to show internal directories.
Click to hide internal directories.