Documentation ¶
Overview ¶
Package webhooks contains external webhook implementations for some of our API types.
Index ¶
- type ClusterBootstrap
- func (wh *ClusterBootstrap) Default(ctx context.Context, obj runtime.Object) error
- func (wh *ClusterBootstrap) SetupWebhookWithManager(ctx context.Context, mgr ctrl.Manager) error
- func (wh *ClusterBootstrap) ValidateCreate(ctx context.Context, obj runtime.Object) error
- func (wh *ClusterBootstrap) ValidateDelete(ctx context.Context, obj runtime.Object) error
- func (wh *ClusterBootstrap) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
- type ClusterBootstrapTemplate
- func (wh *ClusterBootstrapTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (wh *ClusterBootstrapTemplate) ValidateCreate(ctx context.Context, obj runtime.Object) error
- func (wh *ClusterBootstrapTemplate) ValidateDelete(ctx context.Context, obj runtime.Object) error
- func (wh *ClusterBootstrapTemplate) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
- type ClusterPause
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterBootstrap ¶
type ClusterBootstrap struct { Client client.Reader SystemNamespace string // contains filtered or unexported fields }
ClusterBootstrap implements a validating and defaulting webhook for ClusterBootstrap.
func (*ClusterBootstrap) Default ¶
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*ClusterBootstrap) SetupWebhookWithManager ¶
SetupWebhookWithManager performs the setup actions for an ClusterBootstrap webhook, using the passed in mgr. The passed in ctx is used by the Goroutine that cleans up the GVR resource periodically
func (*ClusterBootstrap) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*ClusterBootstrap) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ClusterBootstrap) ValidateUpdate ¶
func (wh *ClusterBootstrap) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type ClusterBootstrapTemplate ¶
type ClusterBootstrapTemplate struct {
SystemNamespace string
}
ClusterBootstrapTemplate implements a validating and defaulting webhook for ClusterBootstrap.
func (*ClusterBootstrapTemplate) SetupWebhookWithManager ¶
func (wh *ClusterBootstrapTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*ClusterBootstrapTemplate) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
- All ClusterBootstrapTempaltes should be created within the tanzu system namespace (configurable)
- Kapp and CNI packages must exist
func (*ClusterBootstrapTemplate) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*ClusterBootstrapTemplate) ValidateUpdate ¶
func (wh *ClusterBootstrapTemplate) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type ClusterPause ¶
ClusterPause implements a validating and defaulting webhook for Cluster.
func (*ClusterPause) SetupWebhookWithManager ¶
func (wh *ClusterPause) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager sets up Cluster webhooks.