Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedOS = map[providerconfigtypes.OperatingSystem]*struct{}{ providerconfigtypes.OperatingSystemCentOS: nil, providerconfigtypes.OperatingSystemUbuntu: nil, providerconfigtypes.OperatingSystemRHEL: nil, providerconfigtypes.OperatingSystemFlatcar: nil, providerconfigtypes.OperatingSystemRockyLinux: nil, }
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"` }
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"` }
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.
Click to show internal directories.
Click to hide internal directories.