@kubevirt-ui/kubevirt-api
    Preparing search index...

    Interface V1beta1VirtualMachineCloneSpec

    interface V1beta1VirtualMachineCloneSpec {
        annotationFilters?: string[];
        labelFilters?: string[];
        newMacAddresses?: Record<string, string>;
        newSMBiosSerial?: string;
        patches?: string[];
        source: K8sIoApiCoreV1TypedLocalObjectReference;
        target?: K8sIoApiCoreV1TypedLocalObjectReference;
        template?: V1beta1VirtualMachineCloneTemplateFilters;
        volumeNamePolicy?: string;
    }
    Index

    Properties

    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?: Record<string, string>

    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 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

    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.

    {}
    
    volumeNamePolicy?: string

    VolumeNamePolicy defines how to handle volume naming during the clone operation