1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/virt-disable-auto-updates-single-boot-source.adoc
2025-11-18 16:29:25 +01:00

60 lines
1.6 KiB
Plaintext

// Module included in the following assembly:
//
// * virt/storage/virt-automatic-bootsource-updates.adoc
//
:_mod-docs-content-type: PROCEDURE
[id="virt-disable-auto-updates-single-boot-source_{context}"]
= Disabling automatic updates for a single boot source
[role="_abstract"]
You can disable automatic updates for an individual boot source, whether it is custom or system-defined, by editing the `HyperConverged` custom resource (CR).
.Prerequisites
* You have installed the {oc-first}.
.Procedure
. Open the `HyperConverged` CR in your default editor by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace}
----
. Disable automatic updates for an individual boot source by editing the `spec.dataImportCronTemplates` field.
+
Custom boot source::
* Remove the boot source from the `spec.dataImportCronTemplates` field. Automatic updates are disabled for custom boot sources by default.
+
System-defined boot source::
.. Add the boot source to `spec.dataImportCronTemplates`.
+
[NOTE]
====
Automatic updates are enabled by default for system-defined boot sources, but these boot sources are not listed in the CR unless you add them.
====
.. Set the value of the `dataimportcrontemplate.kubevirt.io/enable` annotation to `'false'`.
+
--
For example:
[source,yaml]
----
apiVersion: hco.kubevirt.io/v1beta1
kind: HyperConverged
metadata:
name: kubevirt-hyperconverged
spec:
dataImportCronTemplates:
- metadata:
annotations:
dataimportcrontemplate.kubevirt.io/enable: 'false'
name: rhel8-image-cron
# ...
----
--
. Save the file.