infrastructure

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WebhookName is the used for the Infrastructure webhook.
	WebhookName = "infrastructure"
)

Variables

This section is empty.

Functions

func AddToManager

func AddToManager(mgr manager.Manager) (*extensionswebhook.Webhook, error)

AddToManager creates an Infrastructure webhook adds the webhook to the manager.

func NetworkLayoutMigrationMutate

func NetworkLayoutMigrationMutate(ctx context.Context, logger logr.Logger, newInfra, oldInfra *extensionsv1alpha1.Infrastructure) error

NetworkLayoutMigrationMutate annotates the infrastructure object with additonal information that are necessary during the reconciliation when migrating to a new network layout.

func New

func New(logger logr.Logger, mutateFunc MutateFunc) extensionswebhook.Mutator

New returns a new Infrastructure mutator that uses mutateFunc to perform the mutation.

Types

type MutateFunc

type MutateFunc func(ctx context.Context, logger logr.Logger, new, old *extensionsv1alpha1.Infrastructure) error

MutateFunc is a function that can perform a mutation on Infrastructure objects.

Jump to

Keyboard shortcuts

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