extensions

package
v1.18.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreCollections

type CoreCollections struct {
	AugmentedPods               krt.Collection[krtcollections.LocalityPod]
	AuthConfigCollection        krt.Collection[*extauthkubev1.AuthConfig]
	RouteOptionCollection       krt.Collection[*gatewaykubev1.RouteOption]
	VirtualHostOptionCollection krt.Collection[*gatewaykubev1.VirtualHostOption]
}

type K8sGatewayExtensions

type K8sGatewayExtensions interface {
	// CreatePluginRegistry exposes the plugins supported by this implementation.
	CreatePluginRegistry(context.Context) registry.PluginRegistry

	// GetTranslator allows an extension to provide custom translation for
	// different gateway classes.
	GetTranslator(context.Context, *apiv1.Gateway, registry.PluginRegistry) translator.K8sGwTranslator

	KRTExtensions() krtcollections.KRTExtensions
}

K8sGatewayExtensions is responsible for providing implementations for translation utilities which have Enterprise variants.

func NewK8sGatewayExtensions

func NewK8sGatewayExtensions(
	_ context.Context,
	params K8sGatewayExtensionsFactoryParameters,
) (K8sGatewayExtensions, error)

NewK8sGatewayExtensions returns the Open Source implementation of K8sGatewayExtensions

type K8sGatewayExtensionsFactory

type K8sGatewayExtensionsFactory func(
	ctx context.Context,
	params K8sGatewayExtensionsFactoryParameters,
) (K8sGatewayExtensions, error)

K8sGatewayExtensionsFactory returns an extensions.K8sGatewayExtensions

type K8sGatewayExtensionsFactoryParameters

type K8sGatewayExtensionsFactoryParameters struct {
	Mgr             controllerruntime.Manager
	IstioClient     istiokube.Client
	CoreCollections CoreCollections
	StatusReporter  reporter.StatusReporter
	KickXds         func(ctx context.Context)
}

K8sGatewayExtensionsFactoryParameters contains the parameters required to start Gloo K8s Gateway Extensions (including Translator Plugins)

Jump to

Keyboard shortcuts

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