config

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base64Value added in v1.7.0

type Base64Value []byte

func (*Base64Value) UnmarshalText added in v1.7.0

func (v *Base64Value) UnmarshalText(text []byte) error

type ClusterConfig added in v1.7.0

type ClusterConfig struct {
	KindConfigPath string `env:"E2E_CLUSTER_KIND_CONFIG_PATH,notEmpty,required" envDefault:"./kind-config.yaml"`
}

type CommonConfig added in v1.7.0

type CommonConfig struct {
	// DockerConfigJsonSecret is the docker config file.
	// export E2E_DOCKER_CONFIG_JSON_SECRET=`cat ~/.docker/config.json| base64 -w 0`
	DockerConfigJsonSecret Base64Value `env:"E2E_DOCKER_CONFIG_JSON_SECRET"`
	AWSAccessKey           Base64Value `env:"E2E_AWS_ACCESS_KEY_ID"`
	AWSSecretKey           Base64Value `env:"E2E_AWS_SECRET_ACCESS_KEY"`
	GSSecret               Base64Value `env:"E2E_GOOGLE_APPLICATION_CREDENTIALS"`
}

type Config

type Config struct {
	CommonConfig
	Cluster     ClusterConfig
	Operator    OperatorConfig
	NebulaGraph NebulaClusterConfig
}
var C Config

type NebulaClusterConfig added in v1.7.0

type NebulaClusterConfig struct {
	ChartPath         string   `env:"E2E_NC_CHART_PATH,notEmpty,required" envDefault:"../../charts/nebula-cluster"`
	Version           string   `env:"E2E_NC_VERSION"`
	AgentImage        string   `env:"E2E_NC_AGENT_IMAGE"`
	AgentVersion      string   `env:"E2E_NC_AGENT_VERSION"`
	BrImage           string   `env:"E2E_BR_IMAGE"`
	BrVersion         string   `env:"E2E_BR_VERSION"`
	GraphdImage       string   `env:"E2E_NC_GRAPHD_IMAGE"`
	MetadImage        string   `env:"E2E_NC_METAD_IMAGE"`
	StoragedImage     string   `env:"E2E_NC_STORAGED_IMAGE"`
	LicenseManagerURL string   `env:"E2E_NC_LICENSE_MANAGER_URL"`
	Zones             []string `env:"E2E_NC_ZONES" envDefault:"zone1,zone2,zone3"`
}

type OperatorConfig added in v1.7.0

type OperatorConfig struct {
	Install   bool   `env:"E2E_OPERATOR_INSTALL,notEmpty,required" envDefault:"true"`
	Namespace string `env:"E2E_OPERATOR_NAMESPACE,notEmpty,required" envDefault:"nebula-operator-system"`
	Name      string `env:"E2E_OPERATOR_NAMESPACE,notEmpty,required" envDefault:"nebula-operator"`
	ChartPath string `env:"E2E_OPERATOR_CHART_PATH,notEmpty,required" envDefault:"../../charts/nebula-operator"`
	Image     string `env:"E2E_OPERATOR_IMAGE"`
}

Jump to

Keyboard shortcuts

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