Skip to content

Commit 2ccde5f

Browse files
authored
Merge pull request #72894 from aspauldi/CNV-32614
CNV-32614: Document deprecate templates functionality
2 parents ce6622e + 1888264 commit 2ccde5f

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/virtual_machines/creating_vms_rh/virt-creating-vms-from-templates.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="virt-customizing-vm-template-web_{context}"]
7+
= Customizing a VM template by using the web console
8+
9+
You can customize an existing virtual machine (VM) template by modifying the VM or template parameters, such as data sources, cloud-init, or SSH keys, before you start the VM. If you customize a template by copying it and including all of its labels and annotations, the customized template is marked as deprecated when a new version of the Scheduling, Scale, and Performance (SSP) Operator is deployed.
10+
11+
You can remove the deprecated designation from the customized template.
12+
13+
.Procedure
14+
15+
. Navigate to *Virtualization* -> *Templates* in the web console.
16+
17+
. From the list of VM templates, click the template marked as deprecated.
18+
19+
. Click *Edit* next to the pencil icon beside *Labels*.
20+
21+
. Remove the following two labels:
22+
23+
* `template.kubevirt.io/type: "base"`
24+
* `template.kubevirt.io/version: "version"`
25+
26+
. Click *Save*.
27+
28+
. Click the pencil icon beside the number of existing *Annotations*.
29+
30+
. Remove the following annotation:
31+
32+
* `template.kubevirt.io/deprecated`
33+
34+
. Click *Save*.

virt/virtual_machines/creating_vms_rh/virt-creating-vms-from-templates.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ You can customize the disk source and VM parameters before you start the VM:
2323

2424
* See the xref:../../../virt/getting_started/virt-web-console-overview.adoc#virtualmachine-details-overview_virt-web-console-overview[*Overview*], xref:../../../virt/getting_started/virt-web-console-overview.adoc#virtualmachine-details-yaml_virt-web-console-overview[*YAML*], and xref:../../../virt/getting_started/virt-web-console-overview.adoc#virtualmachine-details-configuration_virt-web-console-overview[*Configuration*] tab documentation for details about VM settings.
2525

26+
[NOTE]
27+
====
28+
If you copy a VM template with all its labels and annotations, your version of the template is marked as deprecated when a new version of the Scheduling, Scale, and Performance (SSP) Operator is deployed. You can remove this designation. See xref:../../../virt/virtual_machines/creating_vms_rh/virt-creating-vms-from-templates.adoc#virt-customizing-vm-template-web_virt-creating-vms-from-templates[Customizing a VM template by using the web console].
29+
====
30+
2631
{sno-caps}::
2732
Due to differences in storage behavior, some templates are incompatible with {sno}. To ensure compatibility, do not set the `evictionStrategy` field for templates or VMs that use data volumes or storage profiles.
2833

@@ -31,3 +36,5 @@ include::modules/virt-creating-vm-from-template.adoc[leveloffset=+1]
3136
include::modules/virt-vm-storage-volume-types.adoc[leveloffset=+2]
3237

3338
include::modules/virt-storage-wizard-fields-web.adoc[leveloffset=+2]
39+
40+
include::modules/virt-customizing-vm-template-web.adoc[leveloffset=+2]

0 commit comments

Comments
 (0)