You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new kubevirt eval that tests doubling VM memory by changing
instance types. Includes a verify_instancetype_changed helper function.
Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
GUEST_MEMORY=$(kubectl get virtualmachine "$VM_NAME" -n "$NS" -o jsonpath='{.spec.template.spec.domain.memory.guest}')
70
+
if [ -n "$GUEST_MEMORY" ]; then
71
+
echo "WARNING: VirtualMachine has direct memory specification: $GUEST_MEMORY"
72
+
else
73
+
echo "VirtualMachine uses instancetype for resources (no direct memory spec)"
74
+
fi
75
+
76
+
echo "All validations passed"
77
+
exit 0
78
+
cleanup:
79
+
- k8s.delete:
80
+
apiVersion: kubevirt.io/v1
81
+
kind: VirtualMachine
82
+
metadata:
83
+
name: fedora-vm
84
+
namespace: vm-test
85
+
ignoreNotFound: true
86
+
- k8s.delete:
87
+
apiVersion: v1
88
+
kind: Namespace
89
+
metadata:
90
+
name: vm-test
91
+
ignoreNotFound: true
92
+
prompt:
93
+
inline: |
94
+
A Fedora VirtualMachine named fedora-vm exists in the vm-test namespace using the u1.small instancetype. Double its memory by updating the instance type.
0 commit comments