switchprofile

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupWithManager

func SetupWithManager(mgr ctrl.Manager, cfg *meta.FabricConfig, profiles *switchprofile.Default) error

Types

type Webhook

type Webhook struct {
	client.Client
	Scheme     *runtime.Scheme
	KubeClient client.Reader
	Cfg        *meta.FabricConfig
	Profiles   *switchprofile.Default
}

func (*Webhook) Default

func (w *Webhook) Default(_ context.Context, obj runtime.Object) error

func (*Webhook) Validate

func (*Webhook) ValidateCreate

func (w *Webhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)

func (*Webhook) ValidateDelete

func (w *Webhook) ValidateDelete(_ context.Context, obj runtime.Object) (admission.Warnings, error)

func (*Webhook) ValidateUpdate

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

Jump to

Keyboard shortcuts

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