Documentation
¶
Index ¶
- type WorkspaceKindValidator
- func (v *WorkspaceKindValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *WorkspaceKindValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *WorkspaceKindValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *WorkspaceKindValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
- type WorkspaceValidator
- func (v *WorkspaceValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (v *WorkspaceValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *WorkspaceValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (v *WorkspaceValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkspaceKindValidator ¶
WorkspaceKindValidator validates a Workspace object
func (*WorkspaceKindValidator) SetupWebhookWithManager ¶
func (v *WorkspaceKindValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager sets up the webhook with the manager
func (*WorkspaceKindValidator) ValidateCreate ¶
func (v *WorkspaceKindValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate validates the WorkspaceKind on creation. The optional warnings will be added to the response as warning messages. Return an error if the object is invalid.
func (*WorkspaceKindValidator) ValidateDelete ¶
func (v *WorkspaceKindValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete validates the WorkspaceKind on deletion. The optional warnings will be added to the response as warning messages. Return an error if the object is invalid.
func (*WorkspaceKindValidator) ValidateUpdate ¶
func (v *WorkspaceKindValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate validates the WorkspaceKind on update. The optional warnings will be added to the response as warning messages. Return an error if the object is invalid.
type WorkspaceValidator ¶
WorkspaceValidator validates a Workspace object
func (*WorkspaceValidator) SetupWebhookWithManager ¶
func (v *WorkspaceValidator) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager sets up the webhook with the manager
func (*WorkspaceValidator) ValidateCreate ¶
func (v *WorkspaceValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate validates the Workspace on creation. The optional warnings will be added to the response as warning messages. Return an error if the object is invalid.
func (*WorkspaceValidator) ValidateDelete ¶
func (v *WorkspaceValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateDelete validates the Workspace on deletion. The optional warnings will be added to the response as warning messages. Return an error if the object is invalid.
func (*WorkspaceValidator) ValidateUpdate ¶
func (v *WorkspaceValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate validates the Workspace on update. The optional warnings will be added to the response as warning messages. Return an error if the object is invalid.