Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOperatorActionAndCfg ¶
func BuildOperatorActionAndCfg(cfg *Config) (OperatorAction, *OperatorConfig, error)
BuildOperatorAction build an OperatorAction interface instance or fail
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 PauseImage string ChaosCoreDNSImage 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 UpgradeOperator(config *OperatorConfig) error RestartDaemon(info *OperatorConfig) error RestartControllerManager(info *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