Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultNamespace is the default namespace of Envoy Gateway. DefaultNamespace = "envoy-gateway-system" // DefaultDNSDomain is the default DNS domain used by k8s services. DefaultDNSDomain = "cluster.local" // EnvoyGatewayServiceName is the name of the Envoy Gateway service. EnvoyGatewayServiceName = "envoy-gateway" // EnvoyPrefix is the prefix applied to the Envoy ConfigMap, Service, Deployment, and ServiceAccount. EnvoyPrefix = "envoy" )
Variables ¶
This section is empty.
Functions ¶
func DecodeBytes ¶ added in v1.7.0
func DecodeBytes(data []byte) (*egv1a1.EnvoyGateway, error)
DecodeBytes decodes an EnvoyGateway configuration from bytes.
Types ¶
type KubernetesClientHolder ¶ added in v1.8.0
type KubernetesClientHolder struct {
// contains filtered or unexported fields
}
func NewKubernetesClientHolder ¶ added in v1.8.0
func NewKubernetesClientHolder() *KubernetesClientHolder
func (*KubernetesClientHolder) Get ¶ added in v1.8.0
func (h *KubernetesClientHolder) Get() client.Client
func (*KubernetesClientHolder) Set ¶ added in v1.8.0
func (h *KubernetesClientHolder) Set(cli client.Client)
type Server ¶
type Server struct {
// EnvoyGateway is the configuration used to startup Envoy Gateway.
EnvoyGateway *egv1a1.EnvoyGateway
// ControllerNamespace is the namespace that Envoy Gateway runs in.
ControllerNamespace string
// DNSDomain is the dns domain used by k8s services. Defaults to "cluster.local".
DNSDomain string
// Logger is the logr implementation used by Envoy Gateway.
Logger logging.Logger
// Elected chan is used to signal when an EG instance is elected as leader.
Elected chan struct{}
// ProviderReady is closed once the Kubernetes provider cache is synced and the cached client is ready for consumers.
ProviderReady chan struct{}
// Stdout is the writer for standard output.
Stdout io.Writer
// Stderr is the writer for error output.
Stderr io.Writer
// KubernetesClient holds the controller-runtime client created by the Kubernetes provider.
// This is used by the infrastructure runner to create the envoy proxy and rate limit infra resources.
KubernetesClient *KubernetesClientHolder
}
Server wraps the EnvoyGateway configuration and additional parameters used by Envoy Gateway server.
Click to show internal directories.
Click to hide internal directories.