network

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, args AddArgs) (*webhook.Webhook, error)

Add creates a new controlplane webhook and adds it to the given Manager.

func NewMutator

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

NewMutator creates a new network mutator.

Types

type AddArgs

type AddArgs 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 []runtime.Object
	// Mutator is a mutator to be used by the admission handler.
	Mutator webhook.Mutator
}

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

type MutateFn

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

Jump to

Keyboard shortcuts

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