Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WebhooksToSetup = []WebhookToConfigure{ { ForType: &gwtypes.ControlPlane{}, GVR: gwtypes.ControlPlaneGVR(), }, { ForType: &gwtypes.GatewayConfiguration{}, GVR: gwtypes.GatewayConfigurationGVR(), }, { ForType: &konnectv1alpha2.KonnectGatewayControlPlane{}, GVR: konnectv1alpha2.KonnectGatewayControlPlaneGVR(), }, }
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 ¶
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) }
Click to show internal directories.
Click to hide internal directories.