webhooks

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package webhooks implements experimental addon webhooks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterResourceSet

type ClusterResourceSet struct{}

ClusterResourceSet implements a validation and defaulting webhook for ClusterResourceSet.

func (*ClusterResourceSet) Default

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

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

func (*ClusterResourceSet) SetupWebhookWithManager

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

func (*ClusterResourceSet) ValidateCreate

func (webhook *ClusterResourceSet) ValidateCreate(_ context.Context, newObj runtime.Object) (admission.Warnings, error)

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

func (*ClusterResourceSet) ValidateDelete

func (webhook *ClusterResourceSet) ValidateDelete(_ context.Context, _ runtime.Object) (admission.Warnings, error)

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

func (*ClusterResourceSet) ValidateUpdate

func (webhook *ClusterResourceSet) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

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

type ClusterResourceSetBinding

type ClusterResourceSetBinding struct{}

ClusterResourceSetBinding implements a validation webhook for ClusterResourceSetBinding.

func (*ClusterResourceSetBinding) SetupWebhookWithManager

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

func (*ClusterResourceSetBinding) ValidateCreate

func (webhook *ClusterResourceSetBinding) ValidateCreate(_ context.Context, newObj runtime.Object) (admission.Warnings, error)

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

func (*ClusterResourceSetBinding) ValidateDelete

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

func (*ClusterResourceSetBinding) ValidateUpdate

func (webhook *ClusterResourceSetBinding) ValidateUpdate(_ context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)

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

Jump to

Keyboard shortcuts

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