fix(kubevirt-instancetypes): drop persistent strip that produced null TPM

`make update` stripped `persistent: true` from upstream's
`preferredTPM: { persistent: true }`, leaving the parent key with a null value.
KubeVirt v1.6's CRD tolerated it; v1.8 (the operator version we bumped to in
6af0bf71) enforces structural schema and rejects null:

  VirtualMachineClusterPreference "windows.11" is invalid:
  spec.devices.preferredTPM: Invalid value: "null": spec.devices.preferredTPM
  in body must be of type object: "null"

Stop stripping the line and regenerate the templates from upstream
common-instancetypes. Persistent TPM state falls back to the cluster default
StorageClass with RWO access mode when `vmStateStorageClass` is unset on the
KubeVirt CR, per pkg/storage/backend-storage/backend-storage.go.

Drive-by from the regen:
- Removed (upstream EOL): centos.7*, centos.stream8*
- Added: debian, oraclelinux, legacy, linux*, fedora.s390x, rhel.{9,10}.s390x,
  windows.{xp,7,7.virtio,2k3,2k8,2k8.virtio,2k12,2k12.virtio}, plus new
  cx1.*1gi and d1 instancetype variants.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
This commit is contained in:
Myasnikov Daniil committed 2026-05-19 19:11:17 +05:00
1 parent 660f7eeb55
commit 6df6053c6d
3 files changed
+1955 -399

No files matched your search

@@ -10,4 +10,3 @@ update:
yq -i 'select(.kind != "VirtualMachinePreference")' templates/preferences.yaml
kustomize build https://github.com/kubevirt/common-instancetypes/instancetypes > templates/instancetypes.yaml
yq -i 'select(.kind != "VirtualMachineInstancetype")' templates/instancetypes.yaml
sed -i '/persistent: true/d' templates/preferences.yaml
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff