webhooks

package
v0.0.0-...-9331f55 Latest Latest
Warning

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

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

Documentation

Overview

Package webhooks contains external webhook implementations for some of our API types.

Index

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

func (wh *ClusterBootstrap) Default(ctx context.Context, obj runtime.Object) error

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

func (*ClusterBootstrap) SetupWebhookWithManager

func (wh *ClusterBootstrap) SetupWebhookWithManager(ctx context.Context, mgr ctrl.Manager) error

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

func (wh *ClusterBootstrap) ValidateCreate(ctx context.Context, obj runtime.Object) error

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

func (*ClusterBootstrap) ValidateDelete

func (wh *ClusterBootstrap) ValidateDelete(ctx context.Context, obj runtime.Object) error

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

func (wh *ClusterBootstrapTemplate) ValidateCreate(ctx context.Context, obj runtime.Object) error

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

  1. All ClusterBootstrapTempaltes should be created within the tanzu system namespace (configurable)
  2. Kapp and CNI packages must exist

func (*ClusterBootstrapTemplate) ValidateDelete

func (wh *ClusterBootstrapTemplate) ValidateDelete(ctx context.Context, obj runtime.Object) error

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

type ClusterPause struct {
	Client client.Client
}

ClusterPause implements a validating and defaulting webhook for Cluster.

func (*ClusterPause) Default

func (wh *ClusterPause) Default(ctx context.Context, obj runtime.Object) error

Default satisfies the defaulting webhook interface.

func (*ClusterPause) SetupWebhookWithManager

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

SetupWebhookWithManager sets up Cluster webhooks.

Jump to

Keyboard shortcuts

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