webhooks

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemporalClusterWebhook

type TemporalClusterWebhook struct {
	AvailableAPIs *discovery.AvailableAPIs
}

TemporalClusterWebhook provides endpoints to validate and set default fields values for TemporalCluster objects.

func (*TemporalClusterWebhook) Default

Default ensures empty fields have their default value.

func (*TemporalClusterWebhook) SetupWebhookWithManager

func (w *TemporalClusterWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*TemporalClusterWebhook) ValidateCreate

ValidateCreate ensures the user is creating a consistent temporal cluster.

func (*TemporalClusterWebhook) ValidateDelete

ValidateDelete does nothing.

func (*TemporalClusterWebhook) ValidateUpdate

func (w *TemporalClusterWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate validates TemporalCluster updates. It mainly check for sequential version upgrades.

type TemporalWorkerProcessWebhook

type TemporalWorkerProcessWebhook struct {
	AvailableAPIs *discovery.AvailableAPIs
	client.Client
}

TemporalWorkerProcessWebhook provides endpoints to validate and set default fields values for TemporalWorkerProcess objects.

func (*TemporalWorkerProcessWebhook) Default

Default ensures empty fields have their default value.

func (*TemporalWorkerProcessWebhook) SetupWebhookWithManager

func (w *TemporalWorkerProcessWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*TemporalWorkerProcessWebhook) ValidateCreate

ValidateCreate ensures the user is creating a consistent temporal cluster.

func (*TemporalWorkerProcessWebhook) ValidateDelete

ValidateDelete does nothing.

func (*TemporalWorkerProcessWebhook) ValidateUpdate

func (w *TemporalWorkerProcessWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

ValidateUpdate validates TemporalWorkerProcess updates. It mainly check for sequential version upgrades.

Jump to

Keyboard shortcuts

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