Documentation
¶
Index ¶
- func SetupNewWebhookServer(opts Options) webhook.Server
- type Options
- type Validator
- func (v *Validator) Default(ctx context.Context, obj runtime.Object) error
- 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, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupNewWebhookServer ¶
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) Default ¶
Default implements webhook.Defaulter so a webhook will be registered for the type
func (Validator) SetupWebhookWithManager ¶
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*Validator) ValidateCreate ¶
func (v *Validator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
Click to show internal directories.
Click to hide internal directories.