types

package
v1.54.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Affinity added in v1.46.0

type Affinity struct {
	PodAffinityPreset     providerconfigtypes.ConfigVarString `json:"podAffinityPreset,omitempty"`
	PodAntiAffinityPreset providerconfigtypes.ConfigVarString `json:"podAntiAffinityPreset,omitempty"`
	NodeAffinityPreset    NodeAffinityPreset                  `json:"nodeAffinityPreset,omitempty"`
}

Affinity.

type Auth added in v1.46.0

type Auth struct {
	Kubeconfig providerconfigtypes.ConfigVarString `json:"kubeconfig,omitempty"`
}

Auth.

type CloudConfig added in v1.35.2

type CloudConfig struct {
	// Kubeconfig used to connect to the cluster that runs KubeVirt
	Kubeconfig string `yaml:"kubeconfig"`
	// Namespace used in KubeVirt cloud-controller-manager as infra cluster namespace.
	Namespace string `yaml:"namespace"`
}

func (*CloudConfig) String added in v1.35.2

func (c *CloudConfig) String() (string, error)

type Disk added in v1.46.0

type Disk struct {
	Size             providerconfigtypes.ConfigVarString `json:"size,omitempty"`
	StorageClassName providerconfigtypes.ConfigVarString `json:"storageClassName,omitempty"`
}

Disk.

type Flavor added in v1.46.0

type Flavor struct {
	Name    providerconfigtypes.ConfigVarString `json:"name,omitempty"`
	Profile providerconfigtypes.ConfigVarString `json:"profile,omitempty"`
}

Flavor.

type NodeAffinityPreset added in v1.46.0

type NodeAffinityPreset struct {
	Type   providerconfigtypes.ConfigVarString   `json:"type,omitempty"`
	Key    providerconfigtypes.ConfigVarString   `json:"key,omitempty"`
	Values []providerconfigtypes.ConfigVarString `json:"values,omitempty"`
}

NodeAffinityPreset.

type PrimaryDisk added in v1.46.0

type PrimaryDisk struct {
	Disk
	OsImage providerconfigtypes.ConfigVarString `json:"osImage,omitempty"`
}

PrimaryDisk.

type RawConfig

type RawConfig struct {
	Auth           Auth           `json:"auth,omitempty"`
	VirtualMachine VirtualMachine `json:"virtualMachine,omitempty"`
	Affinity       Affinity       `json:"affinity,omitempty"`
}

func GetConfig added in v1.44.0

func GetConfig(pconfig providerconfigtypes.Config) (*RawConfig, error)

type SecondaryDisks added in v1.46.0

type SecondaryDisks struct {
	Disk
}

SecondaryDisks.

type Template added in v1.46.0

type Template struct {
	CPUs           providerconfigtypes.ConfigVarString `json:"cpus,omitempty"`
	Memory         providerconfigtypes.ConfigVarString `json:"memory,omitempty"`
	PrimaryDisk    PrimaryDisk                         `json:"primaryDisk,omitempty"`
	SecondaryDisks []SecondaryDisks                    `json:"secondaryDisks,omitempty"`
}

Template.

type VirtualMachine added in v1.46.0

type VirtualMachine struct {
	Flavor    Flavor                              `json:"flavor,omitempty"`
	Template  Template                            `json:"template,omitempty"`
	DNSPolicy providerconfigtypes.ConfigVarString `json:"dnsPolicy,omitempty"`
	DNSConfig *corev1.PodDNSConfig                `json:"dnsConfig,omitempty"`
}

VirtualMachine.

Jump to

Keyboard shortcuts

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