istio

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultSystemNamespace default value for SystemNamespace
	DefaultSystemNamespace = "istio-system"

	// ValuesMcpFile for Istio Helm deployment.
	E2EValuesFile = "test-values/values-e2e.yaml"

	// DefaultDeployTimeout for Istio
	DefaultDeployTimeout = time.Second * 300

	// TODO(https://github.com/istio/istio/issues/12606): This timeout is insanely large, but Prow seems to take a lot of time
	//  pulling images.
	// DefaultCIDeployTimeout for Istio
	DefaultCIDeployTimeout = time.Minute * 20

	// DefaultUndeployTimeout for Istio.
	DefaultUndeployTimeout = time.Second * 300

	// DefaultCIUndeployTimeout for Istio.
	DefaultCIUndeployTimeout = time.Second * 900

	// DefaultIstioChartRepo for Istio.
	DefaultIstioChartRepo = "https://gcsweb.istio.io/gcs/istio-prerelease/daily-build/release-1.1-latest-daily/charts/"
)

Variables

This section is empty.

Functions

func SetupOnKube

func SetupOnKube(i *Instance, cfn SetupConfigFn) resource.SetupFn

SetupOnKube is a setup function that will deploy Istio on Kubernetes environment

Types

type Config

type Config struct {
	// The namespace where the Istio components reside in a typical deployment (default: "istio-system").
	SystemNamespace string

	// Indicates that the test should deploy Istio into the target Kubernetes cluster before running tests.
	DeployIstio bool

	// DeployTimeout the timeout for deploying Istio.
	DeployTimeout time.Duration

	// UndeployTimeout the timeout for undeploying Istio.
	UndeployTimeout time.Duration

	ChartRepo string

	// The top-level Helm chart dir.
	ChartDir string

	// The top-level Helm Crds files dir.
	CrdsFilesDir string

	// The Helm values file to be used.
	ValuesFile string

	// Overrides for the Helm values file.
	Values map[string]string
}

Config provide kube-specific Config from flags.

func DefaultConfig

func DefaultConfig(ctx resource.Context) (Config, error)

DefaultConfig creates a new Config from defaults, environments variables, and command-line parameters.

func (*Config) IsMtlsEnabled

func (c *Config) IsMtlsEnabled() bool

Is mtls enabled. Check in Values flag and Values file.

func (*Config) String

func (c *Config) String() string

String implements fmt.Stringer

type Instance

type Instance interface {
	resource.Resource

	Settings() Config
}

Instance represents a deployed Istio instance

func Deploy

func Deploy(ctx resource.Context, cfg *Config) (Instance, error)

Deploy deploys (or attaches to) an Istio deployment and returns a handle. If cfg is nil, then DefaultConfig is used.

type SetupConfigFn

type SetupConfigFn func(cfg *Config)

SetupConfigFn is a setup function that specifies the overrides of the configuration to deploy Istio.

Jump to

Keyboard shortcuts

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