Documentation ¶
Index ¶
- Constants
- func AddToManager(mgr manager.Manager) (*extensionswebhook.Webhook, error)
- func NetworkLayoutMigrationMutate(_ context.Context, logger logr.Logger, ...) error
- func NewFlowMutator(mgr manager.Manager, logger logr.Logger) extensionswebhook.Mutator
- func NewLayoutMutator(logger logr.Logger, mutateFunc MutateFunc) extensionswebhook.Mutator
- type MutateFunc
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
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.
Click to show internal directories.
Click to hide internal directories.