...

Source file src/github.com/chaos-mesh/chaos-mesh/e2e-test/config.go

Documentation: github.com/chaos-mesh/chaos-mesh/e2e-test

     1  // Copyright 2021 Chaos Mesh Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  // http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  //
    15  
    16  package test
    17  
    18  // Config describe the basic config for the operator test
    19  type Config struct {
    20  	ChartDir             string
    21  	ManifestDir          string
    22  	Tag                  string
    23  	ManagerImageRegistry string
    24  	ManagerImage         string
    25  	ManagerTag           string
    26  	DaemonImageRegistry  string
    27  	DaemonImage          string
    28  	DaemonTag            string
    29  	E2EImage             string
    30  	PauseImage           string
    31  	ChaosCoreDNSImage    string
    32  	InstallChaosMesh     bool
    33  	EnableDashboard      bool
    34  }
    35  
    36  // NewDefaultConfig describe the default configuration for operator test
    37  func NewDefaultConfig() *Config {
    38  	return &Config{
    39  		ChartDir:             "/charts",
    40  		ManifestDir:          "/manifests",
    41  		Tag:                  "e2e",
    42  		ManagerImageRegistry: "ghcr.io",
    43  		ManagerImage:         "chaos-mesh/chaos-mesh",
    44  		ManagerTag:           "latest",
    45  		DaemonImageRegistry:  "ghcr.io",
    46  		DaemonImage:          "chaos-mesh/chaos-daemon",
    47  		DaemonTag:            "latest",
    48  		E2EImage:             "ghcr.io/chaos-mesh/e2e-helper:latest",
    49  		ChaosCoreDNSImage:    "ghcr.io/chaos-mesh/chaos-coredns:latest",
    50  		PauseImage:           "gcr.io/google-containers/pause:latest",
    51  		InstallChaosMesh:     false,
    52  		EnableDashboard:      false,
    53  	}
    54  }
    55