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