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.
Click to show internal directories.
Click to hide internal directories.