ranconfig

package
v0.0.0-...-d1a32ca Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// PathToDefaultCnfRanParamsFile path to config file with default system tests parameters.
	PathToDefaultCnfRanParamsFile = "./default.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HubConfig

type HubConfig struct {
	HubAPIClient        *clients.Settings
	HubOCPVersion       string
	ZTPVersion          string
	HubOperatorVersions map[ranparam.HubOperatorName]string
	HubKubeconfig       string `envconfig:"ECO_CNF_RAN_KUBECONFIG_HUB"`
}

HubConfig contains the configuration for the hub cluster, if present.

type RANConfig

type RANConfig struct {
	*cnfconfig.CNFConfig
	*HubConfig
	*Spoke1Config
	*Spoke2Config

	MetricSamplingInterval string   `yaml:"metricSamplingInterval" envconfig:"ECO_CNF_RAN_METRIC_SAMPLING_INTERVAL"`
	NoWorkloadDuration     string   `yaml:"noWorkloadDuration" envconfig:"ECO_CNF_RAN_NO_WORKLOAD_DURATION"`
	WorkloadDuration       string   `yaml:"workloadDuration" envconfig:"ECO_CNF_RAN_WORKLOAD_DURATION"`
	StressngTestImage      string   `yaml:"stressngTestImage" envconfig:"ECO_CNF_RAN_STRESSNG_TEST_IMAGE"`
	CnfTestImage           string   `yaml:"cnfTestImage" envconfig:"ECO_CNF_RAN_TEST_IMAGE"`
	OcpUpgradeUpstreamURL  string   `yaml:"ocpUpgradeUpstreamUrl" envconfig:"ECO_CNF_RAN_OCP_UPGRADE_UPSTREAM_URL"`
	PtpOperatorNamespace   string   `yaml:"ptpOperatorNamespace" envconfig:"ECO_CNF_RAN_PTP_OPERATOR_NAMESPACE"`
	TalmPreCachePolicies   []string `yaml:"talmPreCachePolicies" envconfig:"ECO_CNF_RAN_TALM_PRECACHE_POLICIES"`
	ZtpSiteGenerateImage   string   `yaml:"ztpSiteGenerateImage" envconfig:"ECO_CNF_RAN_ZTP_SITE_GENERATE_IMAGE"`
}

RANConfig contains configuration for the RAN directory.

func NewRANConfig

func NewRANConfig() *RANConfig

NewRANConfig returns an instance of RANConfig.

type Spoke1Config

type Spoke1Config struct {
	Spoke1BMC        *bmc.BMC
	Spoke1APIClient  *clients.Settings
	Spoke1Name       string
	Spoke1OCPVersion string
	BMCUsername      string        `envconfig:"ECO_CNF_RAN_BMC_USERNAME"`
	BMCPassword      string        `envconfig:"ECO_CNF_RAN_BMC_PASSWORD"`
	BMCHosts         []string      `envconfig:"ECO_CNF_RAN_BMC_HOSTS"`
	BMCTimeout       time.Duration `yaml:"bmcTimeout" envconfig:"ECO_CNF_RAN_BMC_TIMEOUT"`
}

Spoke1Config contains the configuration for the spoke 1 cluster, which should always be present.

type Spoke2Config

type Spoke2Config struct {
	Spoke2APIClient  *clients.Settings
	Spoke2Name       string
	Spoke2OCPVersion string
	Spoke2Kubeconfig string `envconfig:"ECO_CNF_RAN_KUBECONFIG_SPOKE2"`
}

Spoke2Config contains the configuration for the spoke 2 cluster, if present.

Jump to

Keyboard shortcuts

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