bootstrap

package
v0.3.35 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// EnvoyAdminAddress is the listening address of the envoy admin interface.
	EnvoyAdminAddress = "127.0.0.1"
	// EnvoyAdminPort is the port used to expose admin interface.
	EnvoyAdminPort = 19000

	// DefaultXdsServerPort is the default listening port of the xds-server.
	DefaultXdsServerPort = 18000

	EnvoyReadinessPort = 19001
	EnvoyReadinessPath = "/ready"
)

Variables

This section is empty.

Functions

func ApplyBootstrapConfig

func ApplyBootstrapConfig(boostrapConfig *egv1a1.ProxyBootstrap, defaultBootstrap string) (string, error)

ApplyBootstrapConfig applies the bootstrap config to the default bootstrap config and return the result config.

func GetRenderedBootstrapConfig

func GetRenderedBootstrapConfig(opts ...BootstrapOption) (string, error)

GetRenderedBootstrapConfig renders the bootstrap YAML string.

Types

type BootstrapConfig

type BootstrapConfig struct {
	// XdsServerHost is the DNS name of the Xds Server within Envoy Gateway.
	XdsServerHost string
	// XdsServerPort is the port of the Xds Server within Envoy Gateway.
	XdsServerPort int32
}

type BootstrapOption

type BootstrapOption func(*BootstrapConfig)

BootstrapOption defines the functional option to configure the bootstrap configuration.

func WithXdsServerHost

func WithXdsServerHost(host string) BootstrapOption

WithXdsServerHost sets the Xds Server host.

func WithXdsServerPort

func WithXdsServerPort(port int32) BootstrapOption

WithXdsServerPort sets the Xds Server port. The default port is 18000.

type StatsMatcherParameters

type StatsMatcherParameters struct {
	Exacts             []string
	Prefixs            []string
	Suffixs            []string
	RegularExpressions []string
}

Jump to

Keyboard shortcuts

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