Documentation
¶
Index ¶
- Constants
- Variables
- func GatewayAPICRDs(provider operatorv1.Provider) (essentialCRDs, optionalCRDs []client.Object)
- func GatewayAPIImplementationComponent(cfg *GatewayAPIImplementationConfig) render.Component
- func GatewayAPIResourcesGetter() func() *gatewayAPIResources
- func K8SGatewayAPICRDs(provider operatorv1.Provider) (essentialCRDs, optionalCRDs []client.Object)
- type GatewayAPIImplementationConfig
- type GatewayAPIImplementationConfigInterface
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
}
Click to show internal directories.
Click to hide internal directories.