kubevirt

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns a Kubevirt provider.

Types

type AffinityType added in v1.60.0

type AffinityType string

type Config

type Config struct {
	Kubeconfig                string
	ClusterName               string
	RestConfig                *rest.Config
	DNSConfig                 *corev1.PodDNSConfig
	DNSPolicy                 corev1.DNSPolicy
	CPUs                      string
	Memory                    string
	Namespace                 string
	OSImageSource             *cdiv1beta1.DataVolumeSource
	StorageTarget             StorageTarget
	StorageClassName          string
	StorageAccessType         corev1.PersistentVolumeAccessMode
	PVCSize                   resource.Quantity
	Instancetype              *kubevirtv1.InstancetypeMatcher
	Preference                *kubevirtv1.PreferenceMatcher
	SecondaryDisks            []SecondaryDisks
	NodeAffinityPreset        NodeAffinityPreset
	TopologySpreadConstraints []corev1.TopologySpreadConstraint
	Region                    string
	Zone                      string

	ProviderNetworkName string
	SubnetName          string
}

type NodeAffinityPreset added in v1.60.0

type NodeAffinityPreset struct {
	Type   AffinityType
	Key    string
	Values []string
}

NodeAffinityPreset.

type SecondaryDisks added in v1.60.0

type SecondaryDisks struct {
	Name              string
	Size              resource.Quantity
	StorageClassName  string
	StorageAccessType corev1.PersistentVolumeAccessMode
}

type StorageTarget added in v1.60.0

type StorageTarget string

StorageTarget represents targeted storage definition that will be used to provision VirtualMachine volumes. Currently, there are two definitions, PVC and Storage. Default value is PVC.

const (
	Storage StorageTarget = "storage"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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