istio: Index | Files

package istio

import ""


Package Files

config.go flags.go istio.go operator.go util.go


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

    // IntegrationTestDefaultsIOP is the path of the default IstioOperator spec to use
    // for integration tests
    IntegrationTestDefaultsIOP = "tests/integration/iop-integration-test-defaults.yaml"

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

    // DefaultCIDeployTimeout for Istio
    DefaultCIDeployTimeout = time.Minute * 10

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

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

func Indent Uses

func Indent(text, indent string) string

Indent indents a block of text with an indent string

func Setup Uses

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

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

type Config Uses

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

    // The namespace in which istio ca and cert provisioning components are deployed.
    IstioNamespace string

    // The namespace in which config, discovery and auto-injector are deployed.
    ConfigNamespace string

    // The namespace in which mixer, kiali, tracing providers, graphana, prometheus are deployed.
    TelemetryNamespace string

    // The namespace in which istio policy checker is deployed.
    PolicyNamespace string

    // The namespace in which istio ingressgateway is deployed
    IngressNamespace string

    // The namespace in which istio egressgateway is deployed
    EgressNamespace string

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

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

    // The IstioOperator spec file to be used for defaults
    IOPFile string

    // Override values specifically for the ICP crd
    // This is mostly required for cases where --set cannot be used
    ControlPlaneValues string

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

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

    // ControlPlaneTopology maps each cluster to the cluster that runs its control plane. For replicated control
    // plane cases (where each cluster has its own control plane), the cluster will map to itself (e.g. 0->0).
    ControlPlaneTopology map[resource.ClusterIndex]resource.ClusterIndex

    // Do not wait for the validation webhook before completing the deployment. This is useful for
    // doing deployments without Galley.
    SkipWaitForValidationWebhook bool

    // CustomSidecarInjectorNamespace allows injecting the sidecar from the specified namespace.
    // if the value is "", use the default sidecar injection instead.
    CustomSidecarInjectorNamespace string

Config provide kube-specific Config from flags.

func DefaultConfig Uses

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

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

func DefaultConfigOrFail Uses

func DefaultConfigOrFail(t test.Failer, ctx resource.Context) Config

DefaultConfigOrFail calls DefaultConfig and fails t if an error occurs.

func (*Config) IsMtlsEnabled Uses

func (c *Config) IsMtlsEnabled() bool

IsMtlsEnabled checks in Values flag and Values file.

func (*Config) IstioOperatorConfigYAML Uses

func (c *Config) IstioOperatorConfigYAML() string

func (*Config) String Uses

func (c *Config) String() string

String implements fmt.Stringer

type Instance Uses

type Instance interface {

    Settings() Config

Instance represents a deployed Istio instance

func Deploy Uses

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 Uses

type SetupConfigFn func(cfg *Config)

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

Package istio imports 26 packages (graph) and is imported by 23 packages. Updated 2020-04-05. Refresh now. Tools for package owners.