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 ( SecurityGroupEntityType = "securityGroup" InvalidSecurityGroupRuleErrorType = "InvalidSecurityGroupRuleError" InvalidPortsErrorMessage = "ports must be a valid single port, comma separated list of ports, or range or ports, formatted as a string" InvalidDestinationErrorMessage = "destination must contain valid CIDR(s), IP address(es), or IP address range(s)" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator(duplicateValidator webhooks.NameValidator, rootNamespace string) *Validator
func (*Validator) SetupWebhookWithManager ¶
func (*Validator) ValidateCreate ¶
func (*Validator) ValidateDelete ¶
Click to show internal directories.
Click to hide internal directories.