Documentation ¶
Overview ¶
+groupName=virtualmachine.rancher.com
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ARPEntry
- type ARPTable
- type ARPTableList
- type ARPTableSpec
- type ARPTableStatus
- type ActionType
- type Credential
- type CredentialList
- type CredentialSpec
- type CredentialStatus
- type EmptyDirVolumeSource
- type LonghornVolumeSource
- type MachineImage
- type MachineImageList
- type MachineImageSpec
- type MachineImageState
- type MachineImageStatus
- type Setting
- type SettingCategory
- type SettingDefinition
- type SettingList
- type SettingName
- type SettingSpec
- type SettingStatus
- type SettingType
- type StateType
- type VirtualMachine
- type VirtualMachineList
- type VirtualMachineSpec
- type VirtualMachineStatus
- type VolumeSource
Constants ¶
const ( MachineImageSnapshot = MachineImageState("snapshot") MachineImageBackup = MachineImageState("backup") MachineImagePublish = MachineImageState("publish") MachineImageProvision = MachineImageState("provision") MachineImageReady = MachineImageState("ready") MachineImageFailed = MachineImageState("failed") MachineImageUnknown = MachineImageState("unknown") )
const ( SettingTypeString = SettingType("string") SettingTypeInt = SettingType("int") SettingTypeBool = SettingType("bool") )
const ( SettingNameLonghornEndpoint = SettingName("longhorn-endpoint") SettingNameLonghornInsecureSkipVerify = SettingName("longhorn-insecure-skip-verify") SettingNameLonghornAccessKey = SettingName("longhorn-access-key") SettingNameLonghornSecretKey = SettingName("longhorn-secret-key") // TODO either get rid of this setting or use it to simplify naming new registry images SettingNameRegistryAddress = SettingName("registry-address") SettingNameRegistrySecret = SettingName("registry-secret") SettingNameRegistryInsecure = SettingName("registry-insecure") SettingNameImageKaniko = SettingName("image-kaniko") SettingNameImageLonghornEngine = SettingName("image-longhorn-engine") SettingNameImageMinimumAvailability = SettingName("image-minimum-replicas") )
const ( SettingCategoryStorage = SettingCategory("storage") SettingCategoryRegistry = SettingCategory("registry") SettingCategoryImage = SettingCategory("image") )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var ( SettingDefinitions = map[SettingName]SettingDefinition{ SettingNameLonghornEndpoint: SettingDefinitionLonghornEndpoint, SettingNameLonghornInsecureSkipVerify: SettingDefinitionLonghornInsecureSkipVerify, SettingNameLonghornAccessKey: SettingDefinitionLonghornAccessKey, SettingNameLonghornSecretKey: SettingDefinitionLonghornSecretKey, SettingNameRegistryAddress: SettingDefinitionRegistryAddress, SettingNameRegistrySecret: SettingDefinitionRegistrySecret, SettingNameRegistryInsecure: SettingDefinitionRegistryInsecure, SettingNameImageKaniko: SettingDefinitionImageKaniko, SettingNameImageLonghornEngine: SettingDefinitionImageLonghornEngine, SettingNameImageMinimumAvailability: SettingDefinitionImageMinimumAvailability, } SettingDefinitionLonghornEndpoint = SettingDefinition{ DisplayName: "Longhorn Endpoint", Description: "The endpoint to Longhorn installation.", Category: SettingCategoryStorage, Type: SettingTypeString, Required: false, ReadOnly: false, } SettingDefinitionLonghornInsecureSkipVerify = SettingDefinition{ DisplayName: "Longhorn Insecure Skip Verify", Description: "Disable certificate path validation for Longhorn endpoint.", Category: SettingCategoryStorage, Type: SettingTypeBool, Required: false, ReadOnly: false, Default: "false", } SettingDefinitionLonghornAccessKey = SettingDefinition{ DisplayName: "Longhorn Access Key", Description: "The Rancher API access key for accessing Longhorn installation.", Category: SettingCategoryStorage, Type: SettingTypeString, Required: false, ReadOnly: false, } SettingDefinitionLonghornSecretKey = SettingDefinition{ DisplayName: "Longhorn Secret Key", Description: "The Rancher API secret key for accessing Longhorn installation.", Category: SettingCategoryStorage, Type: SettingTypeString, Required: false, ReadOnly: false, } SettingDefinitionRegistryAddress = SettingDefinition{ DisplayName: "Registry Address", Description: "Docker registry address in host:port form, used for pushing/pulling machine images", Category: SettingCategoryRegistry, Type: SettingTypeString, Required: false, ReadOnly: false, } SettingDefinitionRegistrySecret = SettingDefinition{ DisplayName: "Registry Secret", Description: "Required for authenticated registries. Secret name of docker-registry type.", Category: SettingCategoryRegistry, Type: SettingTypeString, Required: false, ReadOnly: false, } SettingDefinitionRegistryInsecure = SettingDefinition{ DisplayName: "Insecure Registry", Description: "Registry is insecure (HTTP). Requires manual Docker daemon configuration.", Category: SettingCategoryRegistry, Type: SettingTypeBool, Required: false, ReadOnly: false, Default: "false", } SettingDefinitionImageKaniko = SettingDefinition{ DisplayName: "Kaniko Image", Description: "Docker debug image for Kaniko executor. Used to publish new Docker images.", Category: SettingCategoryImage, Type: SettingTypeString, Required: true, ReadOnly: false, Default: "gcr.io/kaniko-project/executor:debug", } SettingDefinitionImageLonghornEngine = SettingDefinition{ DisplayName: "Longhorn Engine Image", Description: "Docker image for Longhorn Engine. Used to create new machine images.", Category: SettingCategoryImage, Type: SettingTypeString, Required: true, ReadOnly: false, Default: "llparse/longhorn-engine:df56c7e-dirty", } SettingDefinitionImageMinimumAvailability = SettingDefinition{ DisplayName: "Machine Image Availability", Description: "Image must be present on a minimum number of nodes before considered ready.", Category: SettingCategoryImage, Type: SettingTypeInt, Required: true, ReadOnly: false, Default: "3", } )
var SchemeGroupVersion = schema.GroupVersion{Group: "vm.rancher.io", Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
var ( SettingNameList = []SettingName{ SettingNameLonghornEndpoint, SettingNameLonghornInsecureSkipVerify, SettingNameLonghornAccessKey, SettingNameLonghornSecretKey, SettingNameRegistryAddress, SettingNameRegistrySecret, SettingNameRegistryInsecure, SettingNameImageKaniko, SettingNameImageLonghornEngine, SettingNameImageMinimumAvailability, } )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ARPEntry ¶
type ARPEntry struct { IP string `json:"ip"` HWType string `json:"hw_type"` Flags string `json:"flags"` HWAddress string `json:"hw_addr"` Mask string `json:"mask"` Device string `json:"device"` }
func (*ARPEntry) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ARPEntry.
func (*ARPEntry) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ARPTable ¶
type ARPTable struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ARPTableSpec `json:"spec"` Status ARPTableStatus `json:"status"` }
ARPTable is a set of ip/mac correlations discovered on a node's host network. It is used to deduce what IP address is assigned to a VM without accessing the DHCP server or adding instrumentation to each VM.
func (*ARPTable) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ARPTable.
func (*ARPTable) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ARPTable) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ARPTableList ¶
type ARPTableList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ARPTable `json:"items"` }
func (*ARPTableList) DeepCopy ¶
func (in *ARPTableList) DeepCopy() *ARPTableList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ARPTableList.
func (*ARPTableList) DeepCopyInto ¶
func (in *ARPTableList) DeepCopyInto(out *ARPTableList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ARPTableList) DeepCopyObject ¶
func (in *ARPTableList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ARPTableSpec ¶
func (*ARPTableSpec) DeepCopy ¶
func (in *ARPTableSpec) DeepCopy() *ARPTableSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ARPTableSpec.
func (*ARPTableSpec) DeepCopyInto ¶
func (in *ARPTableSpec) DeepCopyInto(out *ARPTableSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ARPTableStatus ¶
type ARPTableStatus struct{}
func (*ARPTableStatus) DeepCopy ¶
func (in *ARPTableStatus) DeepCopy() *ARPTableStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ARPTableStatus.
func (*ARPTableStatus) DeepCopyInto ¶
func (in *ARPTableStatus) DeepCopyInto(out *ARPTableStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ActionType ¶
type ActionType string
const ( ActionStart ActionType = "start" ActionStop ActionType = "stop" ActionReboot ActionType = "reboot" )
type Credential ¶
type Credential struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CredentialSpec `json:"spec"` Status CredentialStatus `json:"status"` }
Credential is a public key that may be used to connect to VMs
func (*Credential) DeepCopy ¶
func (in *Credential) DeepCopy() *Credential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Credential.
func (*Credential) DeepCopyInto ¶
func (in *Credential) DeepCopyInto(out *Credential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Credential) DeepCopyObject ¶
func (in *Credential) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CredentialList ¶
type CredentialList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Credential `json:"items"` }
func (*CredentialList) DeepCopy ¶
func (in *CredentialList) DeepCopy() *CredentialList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialList.
func (*CredentialList) DeepCopyInto ¶
func (in *CredentialList) DeepCopyInto(out *CredentialList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CredentialList) DeepCopyObject ¶
func (in *CredentialList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CredentialSpec ¶
type CredentialSpec struct {
PublicKey string `json:"public_key"`
}
func (*CredentialSpec) DeepCopy ¶
func (in *CredentialSpec) DeepCopy() *CredentialSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialSpec.
func (*CredentialSpec) DeepCopyInto ¶
func (in *CredentialSpec) DeepCopyInto(out *CredentialSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CredentialStatus ¶
type CredentialStatus struct{}
func (*CredentialStatus) DeepCopy ¶
func (in *CredentialStatus) DeepCopy() *CredentialStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialStatus.
func (*CredentialStatus) DeepCopyInto ¶
func (in *CredentialStatus) DeepCopyInto(out *CredentialStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EmptyDirVolumeSource ¶ added in v0.2.0
type EmptyDirVolumeSource struct{}
func (*EmptyDirVolumeSource) DeepCopy ¶ added in v0.2.0
func (in *EmptyDirVolumeSource) DeepCopy() *EmptyDirVolumeSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmptyDirVolumeSource.
func (*EmptyDirVolumeSource) DeepCopyInto ¶ added in v0.2.0
func (in *EmptyDirVolumeSource) DeepCopyInto(out *EmptyDirVolumeSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LonghornVolumeSource ¶ added in v0.2.0
type LonghornVolumeSource struct { Frontend string `json:"frontend"` NumberOfReplicas int `json:"number_of_replicas"` StaleReplicaTimeout int `json:"stale_replica_timeout"` }
func (*LonghornVolumeSource) DeepCopy ¶ added in v0.2.0
func (in *LonghornVolumeSource) DeepCopy() *LonghornVolumeSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LonghornVolumeSource.
func (*LonghornVolumeSource) DeepCopyInto ¶ added in v0.2.0
func (in *LonghornVolumeSource) DeepCopyInto(out *LonghornVolumeSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineImage ¶ added in v0.2.0
type MachineImage struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MachineImageSpec `json:"spec"` Status MachineImageStatus `json:"status"` }
MachineImage is a virtual machine image packaged in a Docker image
func (*MachineImage) DeepCopy ¶ added in v0.2.0
func (in *MachineImage) DeepCopy() *MachineImage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineImage.
func (*MachineImage) DeepCopyInto ¶ added in v0.2.0
func (in *MachineImage) DeepCopyInto(out *MachineImage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineImage) DeepCopyObject ¶ added in v0.2.0
func (in *MachineImage) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineImageList ¶ added in v0.2.0
type MachineImageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []MachineImage `json:"items"` }
func (*MachineImageList) DeepCopy ¶ added in v0.2.0
func (in *MachineImageList) DeepCopy() *MachineImageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineImageList.
func (*MachineImageList) DeepCopyInto ¶ added in v0.2.0
func (in *MachineImageList) DeepCopyInto(out *MachineImageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineImageList) DeepCopyObject ¶ added in v0.2.0
func (in *MachineImageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineImageSpec ¶ added in v0.2.0
type MachineImageSpec struct { DockerImage string `json:"docker_image"` SizeGiB int `json:"size_gib"` FromVirtualMachine string `json:"from_vm"` }
func (*MachineImageSpec) DeepCopy ¶ added in v0.2.0
func (in *MachineImageSpec) DeepCopy() *MachineImageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineImageSpec.
func (*MachineImageSpec) DeepCopyInto ¶ added in v0.2.0
func (in *MachineImageSpec) DeepCopyInto(out *MachineImageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineImageState ¶ added in v0.2.0
type MachineImageState string
type MachineImageStatus ¶ added in v0.2.0
type MachineImageStatus struct { Snapshot string `json:"snapshot"` BackupURL string `json:"backup_url"` BaseImage string `json:"base_image"` Published bool `json:"published"` State MachineImageState `json:"state"` Nodes []string `json:"nodes"` }
func (*MachineImageStatus) DeepCopy ¶ added in v0.2.0
func (in *MachineImageStatus) DeepCopy() *MachineImageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineImageStatus.
func (*MachineImageStatus) DeepCopyInto ¶ added in v0.2.0
func (in *MachineImageStatus) DeepCopyInto(out *MachineImageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Setting ¶ added in v0.2.0
type Setting struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SettingSpec `json:"spec"` Status SettingStatus `json:"status"` }
Setting is a generic RancherVM setting
func (*Setting) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Setting.
func (*Setting) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Setting) DeepCopyObject ¶ added in v0.2.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SettingCategory ¶ added in v0.2.0
type SettingCategory string
type SettingDefinition ¶ added in v0.2.0
type SettingDefinition struct { DisplayName string `json:"displayName"` Description string `json:"description"` Category SettingCategory `json:"category"` Type SettingType `json:"type"` Required bool `json:"required"` ReadOnly bool `json:"readOnly"` Default string `json:"default"` }
func (*SettingDefinition) DeepCopy ¶ added in v0.2.0
func (in *SettingDefinition) DeepCopy() *SettingDefinition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SettingDefinition.
func (*SettingDefinition) DeepCopyInto ¶ added in v0.2.0
func (in *SettingDefinition) DeepCopyInto(out *SettingDefinition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SettingList ¶ added in v0.2.0
type SettingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Setting `json:"items"` }
func (*SettingList) DeepCopy ¶ added in v0.2.0
func (in *SettingList) DeepCopy() *SettingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SettingList.
func (*SettingList) DeepCopyInto ¶ added in v0.2.0
func (in *SettingList) DeepCopyInto(out *SettingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SettingList) DeepCopyObject ¶ added in v0.2.0
func (in *SettingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SettingName ¶ added in v0.2.0
type SettingName string
type SettingSpec ¶ added in v0.2.0
type SettingSpec struct {
Value string `json:"value"`
}
func (*SettingSpec) DeepCopy ¶ added in v0.2.0
func (in *SettingSpec) DeepCopy() *SettingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SettingSpec.
func (*SettingSpec) DeepCopyInto ¶ added in v0.2.0
func (in *SettingSpec) DeepCopyInto(out *SettingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SettingStatus ¶ added in v0.2.0
type SettingStatus struct { }
func (*SettingStatus) DeepCopy ¶ added in v0.2.0
func (in *SettingStatus) DeepCopy() *SettingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SettingStatus.
func (*SettingStatus) DeepCopyInto ¶ added in v0.2.0
func (in *SettingStatus) DeepCopyInto(out *SettingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SettingType ¶ added in v0.2.0
type SettingType string
type StateType ¶
type StateType string
const ( // StatePending indicates a VM is booting StatePending StateType = "pending" // StateRunning indicates a VM is running. The vnc port and/or ssh port // must be accessible for a VM in this state. StateRunning StateType = "running" // StateStopping indicates a VM is gracefully shutting down StateStopping StateType = "stopping" // StateStopped indicates an already-created VM is not currently running StateStopped StateType = "stopped" // StateTerminating indicates the VM is being deleted StateTerminating StateType = "terminating" // StateTerminated indicates the VM is deleted. The Root block device // belonging to the VM may or may not be deleted. StateTerminated StateType = "terminated" // StateMigrating indicates the VM is migrating to a new node StateMigrating StateType = "migrating" // StateError indicates something went horribly wrong and we are not sure // how to proceed StateError StateType = "error" )
type VirtualMachine ¶
type VirtualMachine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VirtualMachineSpec `json:"spec"` Status VirtualMachineStatus `json:"status"` }
VirtualMachine is a specification for a VirtualMachine resource
func (*VirtualMachine) DeepCopy ¶
func (in *VirtualMachine) DeepCopy() *VirtualMachine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachine.
func (*VirtualMachine) DeepCopyInto ¶
func (in *VirtualMachine) DeepCopyInto(out *VirtualMachine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachine) DeepCopyObject ¶
func (in *VirtualMachine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualMachineList ¶
type VirtualMachineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []VirtualMachine `json:"items"` }
VirtualMachineList is a list of VirtualMachine resources
func (*VirtualMachineList) DeepCopy ¶
func (in *VirtualMachineList) DeepCopy() *VirtualMachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineList.
func (*VirtualMachineList) DeepCopyInto ¶
func (in *VirtualMachineList) DeepCopyInto(out *VirtualMachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtualMachineList) DeepCopyObject ¶
func (in *VirtualMachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtualMachineSpec ¶
type VirtualMachineSpec struct { Cpus int32 `json:"cpus"` MemoryMB int32 `json:"memory_mb"` MachineImage string `json:"image"` Action ActionType `json:"action"` PublicKeys []string `json:"public_keys"` HostedNovnc bool `json:"hosted_novnc"` // NodeName is the name of the node where the virtual machine should run. // This is mutable at runtime and will trigger a live migration. // +optional NodeName string `json:"node_name"` KvmArgs string `json:"kvm_extra_args"` ImageVMTools string `json:"image_vmtools"` UseHugePages bool `json:"use_hugepages"` VmImagePvcName string `json:"image_pvc"` VmVolumesPvcName string `json:"volumes_pvc"` Volume VolumeSource `json:"volume"` }
VirtualMachineSpec is the spec for a VirtualMachine resource
func (*VirtualMachineSpec) DeepCopy ¶
func (in *VirtualMachineSpec) DeepCopy() *VirtualMachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineSpec.
func (*VirtualMachineSpec) DeepCopyInto ¶
func (in *VirtualMachineSpec) DeepCopyInto(out *VirtualMachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtualMachineStatus ¶
type VirtualMachineStatus struct { // State is the current state of the virtual machine State StateType `json:"state"` // VncEndpoint is an endpoint exposing a NoVNC webserver VncEndpoint string `json:"vnc_endpoint"` // ID is an external unique identifier for the virtual machine. It is derived // from the metadata uid field. ID string `json:"id"` // MAC address we will assign to a guest NIC, if necessary. It is derived // from the metadata uid field. MAC string `json:"mac"` // IP address assigned to the guest NIC IP string `json:"ip"` // NodeName is the name of the node where the virtual machine is running NodeName string `json:"node_name"` // NodeIP is the IP address of the node where the virtual machine is running NodeIP string `json:"node_ip"` }
VirtualMachineStatus is the status for a VirtualMachine resource
func (*VirtualMachineStatus) DeepCopy ¶
func (in *VirtualMachineStatus) DeepCopy() *VirtualMachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineStatus.
func (*VirtualMachineStatus) DeepCopyInto ¶
func (in *VirtualMachineStatus) DeepCopyInto(out *VirtualMachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VolumeSource ¶ added in v0.2.0
type VolumeSource struct { EmptyDir *EmptyDirVolumeSource `json:"empty_dir,omitempty"` Longhorn *LonghornVolumeSource `json:"longhorn,omitempty"` }
func (*VolumeSource) DeepCopy ¶ added in v0.2.0
func (in *VolumeSource) DeepCopy() *VolumeSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSource.
func (*VolumeSource) DeepCopyInto ¶ added in v0.2.0
func (in *VolumeSource) DeepCopyInto(out *VolumeSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.