Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v1.59.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Affinity added in v1.46.0

type Affinity struct {
	// Deprecated: Use TopologySpreadConstraint instead.
	PodAffinityPreset providerconfigtypes.ConfigVarString `json:"podAffinityPreset,omitempty"`
	// Deprecated: Use TopologySpreadConstraint instead.
	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"`
	StorageAccessType providerconfigtypes.ConfigVarString `json:"storageAccessType,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"`
	// Source describes the VM Disk Image source.
	Source providerconfigtypes.ConfigVarString `json:"source,omitempty"`
	// PullMethod describes the VM Disk Image source optional pull method for registry source. Defaults to 'node'.
	PullMethod providerconfigtypes.ConfigVarString `json:"pullMethod,omitempty"`
}

PrimaryDisk.

type RawConfig

type RawConfig struct {
	ClusterName               providerconfigtypes.ConfigVarString `json:"clusterName"`
	Auth                      Auth                                `json:"auth,omitempty"`
	VirtualMachine            VirtualMachine                      `json:"virtualMachine,omitempty"`
	Affinity                  Affinity                            `json:"affinity,omitempty"`
	TopologySpreadConstraints []TopologySpreadConstraint          `json:"topologySpreadConstraints"`
}

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 TopologySpreadConstraint added in v1.56.0

type TopologySpreadConstraint struct {
	// MaxSkew describes the degree to which VMs may be unevenly distributed.
	MaxSkew providerconfigtypes.ConfigVarString `json:"maxSkew,omitempty"`
	// TopologyKey is the key of infra-node labels.
	TopologyKey providerconfigtypes.ConfigVarString `json:"topologyKey,omitempty"`
	// WhenUnsatisfiable indicates how to deal with a VM if it doesn't satisfy
	// the spread constraint.
	WhenUnsatisfiable providerconfigtypes.ConfigVarString `json:"whenUnsatisfiable,omitempty"`
}

TopologySpreadConstraint describes topology spread constraints for VMs.

type VirtualMachine added in v1.46.0

type VirtualMachine struct {
	// Deprecated: use Instancetype/Preference instead.
	Flavor Flavor `json:"flavor,omitempty"`
	// Instancetype is optional.
	Instancetype *kubevirtv1.InstancetypeMatcher `json:"instancetype,omitempty"`
	// Preference is optional.
	Preference *kubevirtv1.PreferenceMatcher       `json:"preference,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