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.
Click to show internal directories.
Click to hide internal directories.