inject

package
v0.0.0-...-a026827 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSidecarProxyUID = int64(1337)
	DefaultVerbosity       = 2
)

Defaults values for injecting istio proxy into kubernetes resources.

View Source
const (

	// InitContainerName is the name for init container
	InitContainerName = "istio-init"

	// ProxyContainerName is the name for sidecar proxy container
	ProxyContainerName = "istio-proxy"

	// ConfigMapKey should match the expected MeshConfig file name
	ConfigMapKey = "mesh"
)

Variables

This section is empty.

Functions

func GetMeshConfig

func GetMeshConfig(kube kubernetes.Interface, namespace, name string) (*proxyconfig.ProxyMeshConfig, error)

GetMeshConfig fetches configuration from a config map

func InitImageName

func InitImageName(hub, tag string) string

InitImageName returns the fully qualified image name for the istio init image given a docker hub and tag

func IntoResourceFile

func IntoResourceFile(p *Params, in io.Reader, out io.Writer) error

IntoResourceFile injects the istio proxy into the specified kubernetes YAML file.

func ProxyImageName

func ProxyImageName(hub, tag string) string

ProxyImageName returns the fully qualified image name for the istio proxy image given a docker hub and tag.

Types

type Params

type Params struct {
	InitImage         string
	ProxyImage        string
	Verbosity         int
	SidecarProxyUID   int64
	Version           string
	EnableCoreDump    bool
	Mesh              *proxyconfig.ProxyMeshConfig
	MeshConfigMapName string
	// Comma separated list of IP ranges in CIDR form. If set, only
	// redirect outbound traffic to Envoy for these IP
	// ranges. Otherwise all outbound traffic is redirected to Envoy.
	IncludeIPRanges string
}

Params describes configurable parameters for injecting istio proxy into kubernetes resource.

Jump to

Keyboard shortcuts

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