VirtualMachineClone
clone.kubevirt.io / v1alpha1
apiVersion: clone.kubevirt.io/v1alpha1
kind: VirtualMachineClone
metadata:
name: example
apiVersion
string
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind
string
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata
object
spec object required
annotationFilters
[]string
Example use: "!some/key*".
For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
labelFilters
[]string
Example use: "!some/key*".
For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
newMacAddresses
object
NewMacAddresses manually sets that target interfaces' mac addresses. The key is the interface name and the
value is the new mac address. If this field is not specified, a new MAC address will
be generated automatically, as for any interface that is not included in this map.
newSMBiosSerial
string
NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will
be generated automatically.
patches
[]string
Patches holds JSON patches to apply to target. Patches should fit the target's Kind.
Example: '{"op": "add", "path": "/spec/template/metadata/labels/example", "value": "new-label"}'
source object required
Source is the object that would be cloned. Currently supported source types are:
VirtualMachine of kubevirt.io API group,
VirtualMachineSnapshot of snapshot.kubevirt.io API group
apiGroup
string
APIGroup is the group for the resource being referenced.
If APIGroup is not specified, the specified Kind must be in the core API group.
For any other third-party types, APIGroup is required.
kind
string required
Kind is the type of resource being referenced
name
string required
Name is the name of resource being referenced
target object
Target is the outcome of the cloning process.
Currently supported source types are:
- VirtualMachine of kubevirt.io API group
- Empty (nil).
If the target is not provided, the target type would default to VirtualMachine and a random
name would be generated for the target. The target's name can be viewed by
inspecting status "TargetName" field below.
apiGroup
string
APIGroup is the group for the resource being referenced.
If APIGroup is not specified, the specified Kind must be in the core API group.
For any other third-party types, APIGroup is required.
kind
string required
Kind is the type of resource being referenced
name
string required
Name is the name of resource being referenced
template object
For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
annotationFilters
[]string
Example use: "!some/key*".
For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
labelFilters
[]string
Example use: "!some/key*".
For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.
volumeNamePolicy
string
VolumeNamePolicy defines how to handle volume naming during the clone operation
enum:
RandomizeNames, PrefixTargetNamestatus object
conditions []object
lastProbeTime
string
format:
date-time
lastTransitionTime
string
format:
date-time
message
string
reason
string
status
string required
type
string required
ConditionType is the const type for Conditions
creationTime
string
format:
date-time
phase
string
restoreName
string
snapshotName
string
targetName
string
No matches. Try .spec.annotationFilters for an exact path