conversion

package
v2.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

WebhooksToSetup is a list of webhooks that should be registered, for each type is expected to implement the Hub interface (be a storage) and have corresponding types that implement the conversion logic: ConvertTo(...) and ConvertFrom(...) methods.

Functions

func SetupWebhooksWithManager

func SetupWebhooksWithManager(mgr ctrl.Manager) error

SetupWebhooksWithManager registers the webhook for ControlPlane in the manager.

Types

type WebhookToConfigure

type WebhookToConfigure[T client.Object] struct {
	// ForType is the type for which the webhook should be configured,
	// it must implement the Hub interface.
	ForType client.Object
	// GVR is the GroupVersionResource for the type, required to
	// generate proper CRD patch.
	GVR schema.GroupVersionResource
	// Adjuster optionally allows to adjust
	// the webhook builder with additional options.
	Adjuster func(*builder.WebhookBuilder[T])
}

WebhookToConfigure holds the configuration for a conversion webhook.

Jump to

Keyboard shortcuts

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