Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EpochFileTemplate is a template for the root config JSON EpochFileTemplate = "envoy-rev%d.json" DefaultCfgDir = "/var/lib/istio/envoy/envoy_bootstrap_tmpl.json" // MaxClusterNameLength is the maximum cluster name length MaxClusterNameLength = 189 // TODO: use MeshConfig.StatNameLength instead )
Generate the envoy v2 bootstrap configuration, using template.
Variables ¶
This section is empty.
Functions ¶
func RunProxy ¶
func RunProxy(config *meshconfig.ProxyConfig, node string, epoch int, configFname string, doneChan chan error, outWriter io.Writer, errWriter io.Writer) (*os.Process, error)
RunProxy will run sidecar with a v2 config generated from template according with the config. The doneChan will be notified if the envoy process dies. The returned process can be killed by the caller to terminate the proxy.
func WriteBootstrap ¶
func WriteBootstrap(config *meshconfig.ProxyConfig, epoch int, pilotSAN []string, opts map[string]interface{}) (string, error)
WriteBootstrap generates an envoy config based on config and epoch, and returns the filename. TODO: in v2 some of the LDS ports (port, http_port) should be configured in the bootstrap.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.