Documentation
¶
Index ¶
- func SetupConduitWebhookWithManager(ctx context.Context, mgr ctrl.Manager) error
- type ConduitCustomDefaulter
- type ConduitCustomValidator
- func (v *ConduitCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ConduitCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *ConduitCustomValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConduitCustomDefaulter ¶
type ConduitCustomDefaulter struct{}
ConduitCustomDefaulter struct is responsible for setting default values on the custom resource of the Kind Conduit when those are created or updated.
type ConduitCustomValidator ¶
type ConduitCustomValidator struct {
validation.ValidatorService
}
ConduitCustomValidator struct is responsible for validating the Conduit resource when it is created, updated, or deleted.
func NewConduitCustomValidator ¶
func NewConduitCustomValidator(validator validation.ValidatorService) *ConduitCustomValidator
func (*ConduitCustomValidator) ValidateCreate ¶
func (v *ConduitCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type Conduit.
func (*ConduitCustomValidator) ValidateDelete ¶
func (v *ConduitCustomValidator) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type Conduit.
func (*ConduitCustomValidator) ValidateUpdate ¶
func (v *ConduitCustomValidator) ValidateUpdate(ctx context.Context, _, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type Conduit.
Click to show internal directories.
Click to hide internal directories.