Version: v1.56.0 Latest Latest

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 11 Imported by: 8




View Source
const (
	// WebhookName is the webhook name.
	WebhookName = "network"


This section is empty.


func New added in v1.4.0

func New(mgr manager.Manager, args Args) (*webhook.Webhook, error)

New creates a new network webhook with the given args.

func NewMutator

func NewMutator(logger logr.Logger, mutateFn MutateFn) webhook.Mutator

NewMutator creates a new network mutator.


type Args added in v1.4.0

type Args struct {
	// NetworkProvider is the network provider for this webhook
	NetworkProvider string
	// CloudProvider is the cloud provider of this webhook.
	CloudProvider string
	// Types is a list of resource types.
	Types []extensionswebhook.Type
	// Mutator is a mutator to be used by the admission handler.
	Mutator webhook.Mutator

Args are arguments for adding a controlplane webhook to a manager.

type MutateFn

type MutateFn func(new, old *extensionsv1alpha1.Network) error

MutateFn is a function that validates and if needed mutates the given extensionsv1alpha1.Network.

Jump to

Keyboard shortcuts

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