Skip to content

Commit e547ecc

Browse files
authored
Merge pull request #81281 from jherrman/CNV-35593_take2
OSDOCS#35593: Updated example resource for auto-updates - redux
2 parents de04c24 + 4eb9bad commit e547ecc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/virt-autoupdate-custom-bootsource.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ spec:
3737
name: centos7-image-cron
3838
annotations:
3939
cdi.kubevirt.io/storage.bind.immediate.requested: "true" <1>
40+
labels:
41+
instancetype.kubevirt.io/default-preference: centos.7
42+
instancetype.kubevirt.io/default-instancetype: u1.medium
4043
spec:
4144
schedule: "0 */12 * * *" <2>
4245
template:
@@ -47,14 +50,13 @@ spec:
4750
storage:
4851
resources:
4952
requests:
50-
storage: 10Gi
53+
storage: 30Gi
54+
garbageCollect: Outdated
5155
managedDataSource: centos7 <4>
52-
retentionPolicy: "None" <5>
5356
----
5457
<1> This annotation is required for storage classes with `volumeBindingMode` set to `WaitForFirstConsumer`.
5558
<2> Schedule for the job specified in cron format.
5659
<3> Use to create a data volume from a registry source. Use the default `pod` `pullMethod` and not `node` `pullMethod`, which is based on the `node` docker cache. The `node` docker cache is useful when a registry image is available via `Container.Image`, but the CDI importer is not authorized to access it.
5760
<4> For the custom image to be detected as an available boot source, the name of the image's `managedDataSource` must match the name of the template's `DataSource`, which is found under `spec.dataVolumeTemplates.spec.sourceRef.name` in the VM template YAML file.
58-
<5> Use `All` to retain data volumes and data sources when the cron job is deleted. Use `None` to delete data volumes and data sources when the cron job is deleted.
5961
6062
. Save the file.

0 commit comments

Comments
 (0)