conversion

package
v1.6.1-0...-f207c0f Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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 struct {
	// ForType is the type for which the webhook should be configured,
	// it must implement the Hub interface.
	ForType runtime.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)
}

Jump to

Keyboard shortcuts

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