controlplane

package
v0.0.0-...-45ed318 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlPlane

type ControlPlane interface {
	// Type returns the control plane type.
	Type() string
	// Namespace fetches the deployed namespace of control plane components.
	Namespace() string
	// InjectNamespace marks the target namespace as injectable. Pod in this
	// namespace will be injected by control plane.
	InjectNamespace(string) error
	// Deploy deploys the control plane.
	Deploy() error
	// WaitForReady waits for control plane ready
	WaitForReady() error
	// Uninstall uninstalls the control plane.
	Uninstall() error
	// Addr returns the address to communicate with the control plane for fetching
	// configuration changes.
	Addr() string
}

ControlPlane represents the control plane in e2e test cases.

func NewIstioControlPlane

func NewIstioControlPlane(opts *IstioOptions) ControlPlane

NewIstioControlPlane creates an istio control plane.

type IstioOptions

type IstioOptions struct {
	// KubeConfig is the kube config file path.
	KubeConfig string
	// IstioImage is the image of Istiod (pilot)
	IstioImage string
	// SidecarInitImage is the sidecar init image
	SidecarInitImage string
	// SidecarImage is the sidecar image
	SidecarImage string
	// Namespace is the target namespace to install istio.
	Namespace string
	// ChartsPath is a directory that contains charts for Amesh.
	ChartsPath string

	KubectlOpts *k8s.KubectlOptions
}

IstioOptions contains options to customize Istio control plane.

Jump to

Keyboard shortcuts

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