webhook

package
v0.20.1 Latest Latest
Warning

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

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

Documentation

Overview

Package webhook defines mutate and validate webhook for FunctionMesh types

Package webhook defines mutate and validate webhook for FunctionMesh types

Package webhook defines mutate and validate webhook for FunctionMesh types

Package webhook defines mutate and validate webhook for FunctionMesh types

Package webhook defines mutate and validate webhook for FunctionMesh types

Index

Constants

View Source
const (
	PackageURLHTTP     string = "http://"
	PackageURLHTTPS    string = "https://"
	PackageURLFunction string = "function://"
	PackageURLSource   string = "source://"
	PackageURLSink     string = "sink://"

	DefaultTenant    string = "public"
	DefaultNamespace string = "default"
	DefaultCluster   string = "kubernetes"

	DefaultResourceCPU    int64 = 1
	DefaultResourceMemory int64 = 1073741824
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionWebhook

type FunctionWebhook struct {
	v1alpha1.Function
}

func (*FunctionWebhook) Default

func (webhook *FunctionWebhook) Default(ctx context.Context, obj runtime.Object) error

Default implements admission.CustomDefaulter so a webhook will be registered for the type

func (*FunctionWebhook) SetupWebhookWithManager

func (webhook *FunctionWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*FunctionWebhook) ValidateCreate

func (webhook *FunctionWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error

ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type

func (*FunctionWebhook) ValidateDelete

func (webhook *FunctionWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error

ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type

func (*FunctionWebhook) ValidateUpdate

func (webhook *FunctionWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

ValidateUpdate implements admission.CustomValidator so a webhook will be registered for the type

type SinkWebhook

type SinkWebhook struct {
	v1alpha1.Sink
}

func (*SinkWebhook) Default

func (webhook *SinkWebhook) Default(ctx context.Context, obj runtime.Object) error

Default implements admission.CustomDefaulter so a webhook will be registered for the type

func (*SinkWebhook) SetupWebhookWithManager

func (webhook *SinkWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*SinkWebhook) ValidateCreate

func (webhook *SinkWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error

ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type

func (*SinkWebhook) ValidateDelete

func (webhook *SinkWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error

ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type

func (*SinkWebhook) ValidateUpdate

func (webhook *SinkWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

ValidateUpdate implements admission.CustomValidator so a webhook will be registered for the type

type SourceWebhook

type SourceWebhook struct {
	v1alpha1.Source
}

func (*SourceWebhook) Default

func (webhook *SourceWebhook) Default(ctx context.Context, obj runtime.Object) error

Default implements admission.CustomDefaulter so a webhook will be registered for the type

func (*SourceWebhook) SetupWebhookWithManager

func (webhook *SourceWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*SourceWebhook) ValidateCreate

func (webhook *SourceWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error

ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type

func (*SourceWebhook) ValidateDelete

func (webhook *SourceWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error

ValidateDelete implements admission.CustomValidator so a webhook will be registered for the type

func (*SourceWebhook) ValidateUpdate

func (webhook *SourceWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

ValidateUpdate implements admission.CustomValidator so a webhook will be registered for the type

Jump to

Keyboard shortcuts

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