Documentation ¶
Overview ¶
Package webhooks contains external webhook implementations for some of our API types.
Index ¶
- type Cluster
- func (webhook *Cluster) Default(ctx context.Context, obj runtime.Object) error
- func (webhook *Cluster) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *Cluster) ValidateCreate(ctx context.Context, obj runtime.Object) error
- func (webhook *Cluster) ValidateDelete(_ context.Context, obj runtime.Object) error
- func (webhook *Cluster) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
- type ClusterClass
- func (webhook *ClusterClass) Default(_ context.Context, obj runtime.Object) error
- func (webhook *ClusterClass) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (webhook *ClusterClass) ValidateCreate(ctx context.Context, obj runtime.Object) error
- func (webhook *ClusterClass) ValidateDelete(ctx context.Context, obj runtime.Object) error
- func (webhook *ClusterClass) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
Cluster implements a validating and defaulting webhook for Cluster.
func (*Cluster) SetupWebhookWithManager ¶
SetupWebhookWithManager sets up Cluster webhooks.
func (*Cluster) ValidateCreate ¶
ValidateCreate implements webhook.CustomValidator so a webhook will be registered for the type.
func (*Cluster) ValidateDelete ¶
ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type.
type ClusterClass ¶
ClusterClass implements a validation and defaulting webhook for ClusterClass.
func (*ClusterClass) SetupWebhookWithManager ¶
func (webhook *ClusterClass) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterClass) ValidateCreate ¶
ValidateCreate implements validation for ClusterClass create.
func (*ClusterClass) ValidateDelete ¶
ValidateDelete implements validation for ClusterClass delete.
func (*ClusterClass) ValidateUpdate ¶
func (webhook *ClusterClass) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
ValidateUpdate implements validation for ClusterClass update.
Directories ¶
Path | Synopsis |
---|---|
Package runtime contains the webhook implementation for runtime ExtensionConfig.
|
Package runtime contains the webhook implementation for runtime ExtensionConfig. |
Package test contains integration tests for webhooks.
|
Package test contains integration tests for webhooks. |
Package util includes the utility functions for testing webhooks.
|
Package util includes the utility functions for testing webhooks. |