webhooks

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectReconcilerOptions

type ProjectReconcilerOptions struct {
	NamespacePrefix string
}

ProjectWebhookOptions defines options for a ProjectWebhook

type ProjectWebhook

type ProjectWebhook struct {
	// contains filtered or unexported fields
}

ProjectWebhook provides admission logic for Project objects

func NewProjectWebhook

func NewProjectWebhook(client client.Client, options ProjectReconcilerOptions) *ProjectWebhook

func (*ProjectWebhook) SetupWebhookWithManager

func (w *ProjectWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ProjectWebhook) ValidateCreate

func (w *ProjectWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

func (*ProjectWebhook) ValidateDelete

func (w *ProjectWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

func (*ProjectWebhook) ValidateUpdate

func (w *ProjectWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

Jump to

Keyboard shortcuts

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