We'll have to fix examples in the documentation to be more clear. But it does says: "Copy the required dtaImportCronTemplate object from the list in the status field (not including the status field), and change or add the desired fields."
Verified against CNV-v4.11.0-459: Added the following entry to hco.spec.dataImportCronTemplates: - metadata: annotations: cdi.kubevirt.io/storage.bind.immediate.requested: "true" dataimportcrontemplate.kubevirt.io/enable: "false" name: rhel9-image-cron featureGates: (cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ kubectl get hco kubevirt-hyperconverged -n openshift-cnv -o json | jq '.status.dataImportCronTemplates[] | .metadata["name"]' "centos-7-image-cron" "centos-stream8-image-cron" "centos-stream9-image-cron" "fedora-image-cron" "rhel8-image-cron" (cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ (cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ kubectl get ssp ssp-kubevirt-hyperconverged -n openshift-cnv -o json | jq '.spec.commonTemplates.dataImportCronTemplates[] | .metadata["name"]' "centos-7-image-cron" "centos-stream8-image-cron" "centos-stream9-image-cron" "fedora-image-cron" "rhel8-image-cron" (cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$
Verified against CNV-v4.11.0-459: No ability to enter non "true/false" values for annotation: dataimportcrontemplate.kubevirt.io/enable (cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ kubectl edit hco kubevirt-hyperconverged -n openshift-cnv error: hyperconvergeds.hco.kubevirt.io "kubevirt-hyperconverged" could not be patched: admission webhook "validate-hco.kubevirt.io" denied the request: dataImportCronTemplate spec is empty for an enabled DataImportCronTemplate You can run `kubectl replace -f /tmp/kubectl-edit-3863868585.yaml` to try this update again. (cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$ kubectl edit hco kubevirt-hyperconverged -n openshift-cnv error: hyperconvergeds.hco.kubevirt.io "kubevirt-hyperconverged" could not be patched: admission webhook "validate-hco.kubevirt.io" denied the request: the dataimportcrontemplate.kubevirt.io/enable annotation of a dataImportCronTemplate must be either "true" or "false" You can run `kubectl replace -f /tmp/kubectl-edit-67402019.yaml` to try this update again. (cnv-tests) [cnv-qe-jenkins@iuo-dbn-411-56xcn-executor cnv-tests]$
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Virtualization 4.11.0 Images security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:6526