test

package module
v0.0.0-...-e541717 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: Apache-2.0 Imports: 17 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
	ManagerImageRegistry string
	ManagerImage         string
	ManagerTag           string
	DaemonImageRegistry  string
	DaemonImage          string
	DaemonTag            string
	E2EImage             string
	ChaosDNSImage        string
	InstallChaosMesh     bool
	EnableDashboard      bool
}

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 {
	ImageRegistry   string
	ImageRepository string
	ImageTag        string
	Runtime         string
	SocketPath      string
	ImagePullPolicy string
}

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

type ManagerConfig

type ManagerConfig struct {
	ImageRegistry   string
	ImageRepository string
	ImageTag        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 an OperatorAction interface instance

type OperatorConfig

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

OperatorConfig describe the configuration during installing chaos-mesh

func NewDefaultOperatorConfig

func NewDefaultOperatorConfig() OperatorConfig

NewDefaultOperatorConfig create the default configuration for chaos-mesh test

Jump to

Keyboard shortcuts

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