Documentation ¶
Index ¶
- Constants
- type Validator
- func (v *Validator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *Validator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *Validator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *Validator) ValidateUpdate(ctx context.Context, oldObj, obj runtime.Object) (admission.Warnings, error)
Constants ¶
View Source
const ( RouteEntityType = "route" RouteDestinationNotInSpaceErrorType = "RouteDestinationNotInSpaceError" RouteDestinationNotInSpaceErrorMessage = "Route destination app not found in space" RouteHostNameValidationErrorType = "RouteHostNameValidationError" RoutePathValidationErrorType = "RoutePathValidationError" RouteSubdomainValidationErrorType = "RouteSubdomainValidationError" RouteSubdomainValidationErrorMessage = "Subdomains must each be at most 63 characters" HostEmptyError = "host cannot be empty" HostLengthError = "host is too long (maximum is 63 characters)" HostFormatError = "host must be either \"*\" or contain only alphanumeric characters, \"_\", or \"-\"" InvalidURIError = "Invalid Route URI" PathIsSlashError = "Path cannot be a single slash" PathHasQuestionMarkError = "Path cannot contain a question mark" PathLengthExceededError = "Path cannot exceed 128 characters" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func (*Validator) SetupWebhookWithManager ¶
func (*Validator) ValidateCreate ¶
func (*Validator) ValidateDelete ¶
Click to show internal directories.
Click to hide internal directories.