infrastructure

package
v1.43.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 15 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(_ 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 NewFlowMutator added in v1.40.0

func NewFlowMutator(mgr manager.Manager, logger logr.Logger) extensionswebhook.Mutator

NewFlowMutator returns a new Infrastructure flowMutator that uses mutateFunc to perform the mutation.

func NewLayoutMutator added in v1.40.0

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

NewLayoutMutator returns a new Infrastructure layoutMutator 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