konnect

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KonnectExtensionToExtensionRef added in v2.1.1

func KonnectExtensionToExtensionRef(extension *konnectv1alpha2.KonnectExtension) *commonv1alpha1.ExtensionRef

KonnectExtensionToExtensionRef converts a KonnectExtension to the corresponding ExtensionRef.

Types

type ControlPlaneKonnectExtensionProcessor

type ControlPlaneKonnectExtensionProcessor struct {
	KonnectExtensionConfig *KonnectExtensionConfig
}

ControlPlaneKonnectExtensionProcessor processes Konnect extensions for ControlPlane resources.

func (*ControlPlaneKonnectExtensionProcessor) GetKonnectConfig

GetKonnectConfig returns the KonnectConfig from the KonnectExtensionConfig.

func (*ControlPlaneKonnectExtensionProcessor) Process

Process extracts the KonnectExtension from the ControlPlane and generates the KonnectExtensionConfig. It returns true if a KonnectExtension was found and processed, false otherwise. If an error occurs during processing, it returns false and the error. It captures configuration from the KonnectExtension resource and prepares it for use in KIC instances. This implementation of the ExtensionProcessor interface has side effects, as it modifies the KonnectExtensionConfig field of the processor.

type DataPlaneKonnectExtensionProcessor

type DataPlaneKonnectExtensionProcessor struct{}

DataPlaneKonnectExtensionProcessor processes Konnect extensions for DataPlane resources.

func (*DataPlaneKonnectExtensionProcessor) Process

Process gets the DataPlane as argument, and in case it references a KonnectExtension, it fetches the referenced extension and applies the necessary changes to the DataPlane spec.

type KonnectExtensionConfig

type KonnectExtensionConfig struct {
	// KonnectConfig contains the configuration for the Konnect instance.
	KonnectConfig *managercfg.KonnectConfig
}

KonnectExtensionConfig holds the configuration for a KIC instance based on a KonnectExtension resource. It includes the KonnectConfig that should be enabled.

Jump to

Keyboard shortcuts

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