webhooks

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 25 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 Cluster

type Cluster struct {
	Client client.Reader
}

Cluster implements a validating and defaulting webhook for Cluster.

func (*Cluster) Default

func (webhook *Cluster) Default(ctx context.Context, obj runtime.Object) error

Default satisfies the defaulting webhook interface.

func (*Cluster) SetupWebhookWithManager

func (webhook *Cluster) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up Cluster webhooks.

func (*Cluster) ValidateCreate

func (webhook *Cluster) ValidateCreate(ctx context.Context, obj runtime.Object) error

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

func (*Cluster) ValidateDelete

func (webhook *Cluster) ValidateDelete(_ context.Context, obj runtime.Object) error

ValidateDelete implements webhook.CustomValidator so a webhook will be registered for the type.

func (*Cluster) ValidateUpdate

func (webhook *Cluster) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) error

ValidateUpdate implements webhook.CustomValidator so a webhook will be registered for the type.

type ClusterClass

type ClusterClass struct {
	Client client.Reader
}

ClusterClass implements a validation and defaulting webhook for ClusterClass.

func (*ClusterClass) Default

func (webhook *ClusterClass) Default(_ context.Context, obj runtime.Object) error

Default implements defaulting for ClusterClass create and update.

func (*ClusterClass) SetupWebhookWithManager

func (webhook *ClusterClass) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ClusterClass) ValidateCreate

func (webhook *ClusterClass) ValidateCreate(ctx context.Context, obj runtime.Object) error

ValidateCreate implements validation for ClusterClass create.

func (*ClusterClass) ValidateDelete

func (webhook *ClusterClass) ValidateDelete(ctx context.Context, obj runtime.Object) error

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.

Jump to

Keyboard shortcuts

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