webhook

package
v0.0.0-...-bc4e445 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkspaceKindValidator

type WorkspaceKindValidator struct {
	client.Client
	Scheme *runtime.Scheme
}

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

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

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

type WorkspaceValidator struct {
	client.Client
	Scheme *runtime.Scheme
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL