Skip to content

Commit

Permalink
Merge pull request #120 from 0xFelix/win11-requirements-0.3
Browse files Browse the repository at this point in the history
[release-0.3] fix: Add missing requirements to windows.11 and windows.2k16 preferences
  • Loading branch information
kubevirt-bot authored Nov 20, 2023
2 parents b7a9338 + 2309235 commit cdfe8f6
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 3 deletions.
20 changes: 20 additions & 0 deletions common-clusterpreferences-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,11 @@ spec:
preferredUseEfi: true
preferredUseSecureBoot: true
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 2
memory:
guest: 4Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachineClusterPreference
Expand Down Expand Up @@ -658,6 +663,11 @@ spec:
preferredUseEfi: true
preferredUseSecureBoot: true
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 2
memory:
guest: 4Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachineClusterPreference
Expand Down Expand Up @@ -826,6 +836,11 @@ spec:
vapic: {}
vpindex: {}
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 1
memory:
guest: 2Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachineClusterPreference
Expand Down Expand Up @@ -880,6 +895,11 @@ spec:
vapic: {}
vpindex: {}
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 1
memory:
guest: 2Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachineClusterPreference
Expand Down
40 changes: 40 additions & 0 deletions common-instancetypes-all-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1581,6 +1581,11 @@ spec:
preferredUseEfi: true
preferredUseSecureBoot: true
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 2
memory:
guest: 4Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachineClusterPreference
Expand Down Expand Up @@ -1640,6 +1645,11 @@ spec:
preferredUseEfi: true
preferredUseSecureBoot: true
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 2
memory:
guest: 4Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachineClusterPreference
Expand Down Expand Up @@ -1808,6 +1818,11 @@ spec:
vapic: {}
vpindex: {}
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 1
memory:
guest: 2Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachineClusterPreference
Expand Down Expand Up @@ -1862,6 +1877,11 @@ spec:
vapic: {}
vpindex: {}
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 1
memory:
guest: 2Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachineClusterPreference
Expand Down Expand Up @@ -3687,6 +3707,11 @@ spec:
preferredUseEfi: true
preferredUseSecureBoot: true
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 2
memory:
guest: 4Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachinePreference
Expand Down Expand Up @@ -3746,6 +3771,11 @@ spec:
preferredUseEfi: true
preferredUseSecureBoot: true
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 2
memory:
guest: 4Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachinePreference
Expand Down Expand Up @@ -3914,6 +3944,11 @@ spec:
vapic: {}
vpindex: {}
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 1
memory:
guest: 2Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachinePreference
Expand Down Expand Up @@ -3968,6 +4003,11 @@ spec:
vapic: {}
vpindex: {}
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 1
memory:
guest: 2Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachinePreference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ resources:

components:
- ./metadata
- ./requirements
- ../../components/tpm
- ../../components/secureboot
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ resources:

components:
- ./metadata
- ./requirements

nameSuffix: .2k16
20 changes: 20 additions & 0 deletions common-preferences-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,11 @@ spec:
preferredUseEfi: true
preferredUseSecureBoot: true
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 2
memory:
guest: 4Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachinePreference
Expand Down Expand Up @@ -658,6 +663,11 @@ spec:
preferredUseEfi: true
preferredUseSecureBoot: true
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 2
memory:
guest: 4Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachinePreference
Expand Down Expand Up @@ -826,6 +836,11 @@ spec:
vapic: {}
vpindex: {}
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 1
memory:
guest: 2Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachinePreference
Expand Down Expand Up @@ -880,6 +895,11 @@ spec:
vapic: {}
vpindex: {}
preferredTerminationGracePeriodSeconds: 3600
requirements:
cpu:
guest: 1
memory:
guest: 2Gi
---
apiVersion: instancetype.kubevirt.io/v1beta1
kind: VirtualMachinePreference
Expand Down
6 changes: 3 additions & 3 deletions scripts/functest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ for preference in $(${KUBECTL} get virtualmachineclusterpreferences --no-headers
fi
fi

# Ensure a VirtualMachine can be created when enough resources are provided using the u1.medium instance type
if ! ${VIRTCTL} create vm --instancetype u1.medium --preference "${preference}" --volume-containerdisk name:disk,src:quay.io/containerdisks/fedora:latest --name "vm-${preference}" | ${KUBECTL} apply -f - ; then
echo "functest failed on preference ${preference} using instancetype u1.medium"
# Ensure a VirtualMachine can be created when enough resources are provided using the u1.large instance type
if ! ${VIRTCTL} create vm --instancetype u1.large --preference "${preference}" --volume-containerdisk name:disk,src:quay.io/containerdisks/fedora:latest --name "vm-${preference}" | ${KUBECTL} apply -f - ; then
echo "functest failed on preference ${preference} using instancetype u1.large"
exit 1
fi
${KUBECTL} delete "vm/vm-${preference}"
Expand Down

0 comments on commit cdfe8f6

Please sign in to comment.