config

package
v0.0.0-...-7b6711f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamePrefix

func GetNamePrefix() (string, error)

Types

type ClusterTransport

type ClusterTransport struct {
	KubeConfig           string `yaml:"kubeConfig"`
	Token                string `yaml:"token"`
	Endpoint             string `yaml:"endpoint"`
	CertificateAuthority string `yaml:"certificateAuthority"`
	InsecureTls          bool   `yaml:"insecureTls"`
}

type Config

type Config struct {
	ClusterTransport ClusterTransport `yaml:"clusterTransport"`
	Disks            DisksConf        `yaml:"disks"`
	VM               VmConf           `yaml:"vm"`
	Ipam             IpamConf         `yaml:"ipam"`
	HelperImages     HelperImages     `yaml:"helperImages"`
	Namespace        string           `yaml:"namespaceSuffix"`
	TestData         TestData         `yaml:"testData"`
	StorageClass     StorageClass
}

func GetConfig

func GetConfig() (*Config, error)

type DisksConf

type DisksConf struct {
	UploadHelperImage string `yaml:"uploadHelperImage"`
	CviTestDataDir    string `yaml:"cviTestDataDir"`
	ViTestDataDir     string `yaml:"viTestDataDir"`
	VdTestDataDir     string `yaml:"vdTestDataDir"`
}

type Dvcr

type Dvcr struct {
	Storage Storage `yaml:"storage"`
}

type HelperImages

type HelperImages struct {
	CurlImage string `yaml:"curlImage"`
}

type IpamConf

type IpamConf struct {
	TestDataDir string `yaml:"testDataDir"`
}

type Kustomize

type Kustomize struct {
	ApiVersion     string           `yaml:"apiVersion"`
	Labels         []KustomizeLabel `yaml:"labels"`
	Configurations []string         `yaml:"configurations"`
	Kind           string           `yaml:"kind"`
	Namespace      string           `yaml:"namespace"`
	NamePrefix     string           `yaml:"namePrefix"`
	Resources      []string         `yaml:"resources"`
}

func (*Kustomize) ExcludeResource

func (k *Kustomize) ExcludeResource(filePath, resourceName string) error

func (*Kustomize) SetParams

func (k *Kustomize) SetParams(filePath, namespace, namePrefix string) error

type KustomizeLabel

type KustomizeLabel struct {
	IncludeSelectors bool              `yaml:"includeSelectors"`
	Pairs            map[string]string `yaml:"pairs"`
}

type Metadata

type Metadata struct {
	Name string `yaml:"name"`
}

type ModuleConfig

type ModuleConfig struct {
	ApiVersion string   `yaml:"apiVersion"`
	Kind       string   `yaml:"kind"`
	Metadata   Metadata `yaml:"metadata"`
	Spec       Spec     `yaml:"spec"`
}

func GetModuleConfig

func GetModuleConfig() (*ModuleConfig, error)

type Settings

type Settings struct {
	Loglevel            string   `yaml:"logLevel,omitempty"`
	VirtualMachineCIDRs []string `yaml:"virtualMachineCIDRs"`
	Dvcr                Dvcr     `yaml:"dvcr"`
	HighAvailability    bool     `yaml:"highAvailability,omitempty"`
}

type Spec

type Spec struct {
	Enabled  bool     `yaml:"enabled"`
	Settings Settings `yaml:"settings"`
	Version  int      `yaml:"version"`
}

type Storage

type Storage struct {
	PersistentVolumeClaim map[string]string `yaml:"persistentVolumeClaim"`
	Type                  string            `yaml:"type"`
}

type StorageClass

type StorageClass struct {
	VolumeBindingMode storagev1.VolumeBindingMode
}

type TestData

type TestData struct {
	AffinityToleration string `yaml:"affinityToleration"`
	ComplexTest        string `yaml:"complexTest"`
	Connectivity       string `yaml:"connectivity"`
	DiskResizing       string `yaml:"diskResizing"`
	SizingPolicy       string `yaml:"sizingPolicy"`
	VmConfiguration    string `yaml:"vmConfiguration"`
	VmLabelAnnotation  string `yaml:"vmLabelAnnotation"`
	VmMigration        string `yaml:"vmMigration"`
	VmDiskAttachment   string `yaml:"vmDiskAttachment"`
	VdSnapshots        string `yaml:"vdSnapshots"`
	Sshkey             string `yaml:"sshKey"`
	SshUser            string `yaml:"sshUser"`
}

type VmConf

type VmConf struct {
	TestDataDir string `yaml:"testDataDir"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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