webhook

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppWrapperWebhook

type AppWrapperWebhook struct {
	Config                *config.AppWrapperConfig
	SubjectAccessReviewer authClientv1.SubjectAccessReviewInterface
	DiscoveryClient       *discovery.DiscoveryClient
	// contains filtered or unexported fields
}

func (*AppWrapperWebhook) Default

func (w *AppWrapperWebhook) Default(ctx context.Context, obj runtime.Object) error

Default ensures that Suspend is set appropriately when an AppWrapper is created

func (*AppWrapperWebhook) SetupWebhookWithManager

func (wh *AppWrapperWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*AppWrapperWebhook) ValidateCreate

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

ValidateCreate validates invariants when an AppWrapper is created

func (*AppWrapperWebhook) ValidateDelete

ValidateDelete is a noop for us, but is required to implement the CustomValidator interface

func (*AppWrapperWebhook) ValidateUpdate

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

ValidateUpdate validates invariants when an AppWrapper is updated

Jump to

Keyboard shortcuts

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