controlplane

package
v0.6.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeID = "kcp-ingress"

	ToEnvoyLabel = "ingress.kcp.dev/envoy"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvoyControlPlane

type EnvoyControlPlane struct {
	// contains filtered or unexported fields
}

EnvoyControlPlane is an envoy control plane that handles configuration update and the management of the xDS server.

func NewEnvoyControlPlane

func NewEnvoyControlPlane(managementPort, envoyListenPort uint, ingressLister v1.IngressLister, callbacks xds.Callbacks) *EnvoyControlPlane

NewEnvoyControlPlane creates a new EnvoyControlPlane instance.

func (*EnvoyControlPlane) Start

func (ecp *EnvoyControlPlane) Start(ctx context.Context) error

Start starts the envoy XDS server in a separate goroutine.

func (*EnvoyControlPlane) UpdateEnvoyConfig

func (ecp *EnvoyControlPlane) UpdateEnvoyConfig(ctx context.Context) error

UpdateEnvoyConfig creates a new envoy config snapshot and updates the xDS server using the information from the ingresses that are labeled with the ToEnvoyLabel.

Jump to

Keyboard shortcuts

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