Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunServer ¶
func RunServer(ctx context.Context, resources *message.ProviderResources, opts ...ServerOption) error
RunServer runs the Gateway API xDS server. Uses resources to subscribe to Gateway-API resource updates, translates it to xDS IR and infra IR resources, and publishes them via xDS snapshotter service. The call will block until the ctx is canceled.
Types ¶
type ServerOption ¶
type ServerOption func(*serverOptions)
ServerOption is an xDS server option.
func WithClient ¶
func WithClient(c client.Client) ServerOption
WithClient sets the Kubernetes client for status updates. If provided, a status runner will be started to write Gateway API resource statuses back to the API server.
func WithExtensionServer ¶
func WithExtensionServer(addr string, creds credentials.TransportCredentials, failOpen bool) ServerOption
WithExtensionServer sets the extension server for the server options. If failOpen is true, the server will still translate xDS (unmodified) if the extension server is not available.
func WithWorkerdProjectNamespaces ¶
func WithWorkerdProjectNamespaces() ServerOption
WithWorkerdProjectNamespaces marks route namespaces as project UUIDs for the workerd xDS hook. It is the opt-in for multi-project translation owners — the shared backplane, whose DefaultGatewayReconciler rewrites route namespaces to multicluster cluster names (project UUIDs). With it, the hook emits one per-project resident cluster per project instead of the single legacy cluster. Never set it in dedicated/dev single-project topologies, where namespaces are user namespaces. (APO-796)
Directories
¶
| Path | Synopsis |
|---|---|
|
status
|
|
|
xds
|
|
|
cache
This file contains code derived from Contour, https://github.com/projectcontour/contour from the source file https://github.com/projectcontour/contour/blob/main/internal/xds/v3/snapshotter.go and is provided here subject to the following: Copyright Project Contour Authors SPDX-License-Identifier: Apache-2.0
|
This file contains code derived from Contour, https://github.com/projectcontour/contour from the source file https://github.com/projectcontour/contour/blob/main/internal/xds/v3/snapshotter.go and is provided here subject to the following: Copyright Project Contour Authors SPDX-License-Identifier: Apache-2.0 |
|
extensions
Import all Envoy filter types so they are registered and deserialization does not fail when using them in the "typed_config" attributes.
|
Import all Envoy filter types so they are registered and deserialization does not fail when using them in the "typed_config" attributes. |