test

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ChartDir     string
	ManifestDir  string
	Tag          string
	ManagerImage string
	ManagerTag   string
	DaemonImage  string
	DaemonTag    string
	E2EImage     string
}

Config describe the basic config for the operator test

func NewDefaultConfig

func NewDefaultConfig() *Config

NewDefaultConfig describe the default configuration for operator test

type DaemonConfig

type DaemonConfig struct {
	Image           string
	Tag             string
	Runtime         string
	SocketPath      string
	ImagePullPolicy string
}

DaemonConfig describe the chaos-daemon configuration during installing chaos-mesh

type ManagerConfig

type ManagerConfig struct {
	Image           string
	Tag             string
	ImagePullPolicy string
}

ManagerConfig describe the chaos-operator configuration during installing chaos-mesh

type OperatorAction

type OperatorAction interface {
	CleanCRDOrDie()
	DeployOperator(config OperatorConfig) error
	InstallCRD(config OperatorConfig) error
}

OperatorAction describe the common operation during test (e2e/stability/etc..)

func NewOperatorAction

func NewOperatorAction(
	kubeCli kubernetes.Interface,
	aggrCli aggregatorclientset.Interface,
	apiExtCli apiextensionsclientset.Interface,
	cfg *Config) OperatorAction

NewOperatorAction create a OperatorAction interface instance

type OperatorConfig

type OperatorConfig struct {
	Namespace   string
	ReleaseName string
	Manager     ManagerConfig
	Daemon      DaemonConfig
	Tag         string
}

OperatorConfig describe the configuration during installing chaos-mesh

func NewDefaultOperatorConfig

func NewDefaultOperatorConfig() OperatorConfig

NewDefaultOperatorConfig create the default configuration for chaos-mesh test

Directories

Path Synopsis
cmd
e2e
pkg

Jump to

Keyboard shortcuts

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