gatewayapi

package
v1.40.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GatewayAPIName                      = "gateway-api"
	GatewayControllerLabel              = GatewayAPIName + "-controller"
	EnvoyGatewayConfigName              = "envoy-gateway-config"
	EnvoyGatewayConfigKey               = "envoy-gateway.yaml"
	EnvoyGatewayDeploymentContainerName = "envoy-gateway"
	EnvoyGatewayJobContainerName        = "envoy-gateway-certgen"
)

Variables

View Source
var (
	// logger gateway name and namespace are set from the k8s downward api pod metadata.
	GatewayNameEnvVar = corev1.EnvVar{
		Name: "LOGGER_GATEWAY_NAME",
		ValueFrom: &corev1.EnvVarSource{
			FieldRef: &corev1.ObjectFieldSelector{
				FieldPath: "metadata.name",
			},
		},
	}
	GatewayNamespaceEnvVar = corev1.EnvVar{
		Name: "LOGGER_GATEWAY_NAMESPACE",
		ValueFrom: &corev1.EnvVarSource{
			FieldRef: &corev1.ObjectFieldSelector{
				FieldPath: "metadata.namespace",
			},
		},
	}
)
View Source
var (
	AccessLogType envoyapi.ProxyAccessLogType = "Route"
)
View Source
var GatewayAPIResources = GatewayAPIResourcesGetter()

Functions

func GatewayAPICRDs

func GatewayAPICRDs(provider operatorv1.Provider) (essentialCRDs, optionalCRDs []client.Object)

GatewayAPICRDs returns the k8s GatewayAPI CRDs and the Envoy CRDs together, necessary for the deployment of Calico Gateway API.

func GatewayAPIImplementationComponent

func GatewayAPIImplementationComponent(cfg *GatewayAPIImplementationConfig) render.Component

func GatewayAPIResourcesGetter

func GatewayAPIResourcesGetter() func() *gatewayAPIResources

func K8SGatewayAPICRDs added in v1.40.3

func K8SGatewayAPICRDs(provider operatorv1.Provider) (essentialCRDs, optionalCRDs []client.Object)

Types

type GatewayAPIImplementationConfig

type GatewayAPIImplementationConfig struct {
	Installation          *operatorv1.InstallationSpec
	GatewayAPI            *operatorv1.GatewayAPI
	PullSecrets           []*corev1.Secret
	CustomEnvoyGateway    *envoyapi.EnvoyGateway
	CustomEnvoyProxies    map[string]*envoyapi.EnvoyProxy
	CurrentGatewayClasses set.Set[string]
}

type GatewayAPIImplementationConfigInterface

type GatewayAPIImplementationConfigInterface interface {
	GetConfig() *GatewayAPIImplementationConfig
}

Jump to

Keyboard shortcuts

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