Documentation ¶
Index ¶
- Variables
- type ModuleValidator
- func (m *ModuleValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (m *ModuleValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (m *ModuleValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (m *ModuleValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type NamespaceValidator
- func (nd *NamespaceValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (nd *NamespaceValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (nd *NamespaceValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (nd *NamespaceValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var NotImplemented = errors.New("not implemented")
Functions ¶
This section is empty.
Types ¶
type ModuleValidator ¶
type ModuleValidator struct {
// contains filtered or unexported fields
}
func NewModuleValidator ¶
func NewModuleValidator(logger logr.Logger) *ModuleValidator
func (*ModuleValidator) SetupWebhookWithManager ¶
func (m *ModuleValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ModuleValidator) ValidateCreate ¶
func (m *ModuleValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ModuleValidator) ValidateDelete ¶
func (m *ModuleValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ModuleValidator) ValidateUpdate ¶
func (m *ModuleValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type NamespaceValidator ¶
type NamespaceValidator struct{}
func (*NamespaceValidator) SetupWebhookWithManager ¶
func (nd *NamespaceValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*NamespaceValidator) ValidateCreate ¶
func (*NamespaceValidator) ValidateDelete ¶
func (*NamespaceValidator) ValidateUpdate ¶
Click to show internal directories.
Click to hide internal directories.