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
- type FunctionWebhook
- func (webhook *FunctionWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (webhook *FunctionWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *FunctionWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error
- func (webhook *FunctionWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error
- func (webhook *FunctionWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
- type SinkWebhook
- func (webhook *SinkWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (webhook *SinkWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *SinkWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error
- func (webhook *SinkWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error
- func (webhook *SinkWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
- type SourceWebhook
- func (webhook *SourceWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (webhook *SourceWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *SourceWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) error
- func (webhook *SourceWebhook) ValidateDelete(ctx context.Context, obj runtime.Object) error
- func (webhook *SourceWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
Constants ¶
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 ¶
func (*FunctionWebhook) Default ¶
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 ¶
ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type
func (*FunctionWebhook) ValidateDelete ¶
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 ¶
func (*SinkWebhook) Default ¶
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 ¶
ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type
func (*SinkWebhook) ValidateDelete ¶
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 ¶
func (*SourceWebhook) Default ¶
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 ¶
ValidateCreate implements admission.CustomValidator so a webhook will be registered for the type
func (*SourceWebhook) ValidateDelete ¶
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