Skip to content

Commit

Permalink
examples/vm-pool-cirros.yaml: remove usage of .spec.running field
Browse files Browse the repository at this point in the history
The .spec.running field is deprecated, therefore we should
runStrategy instread.

For more info, look at:
kubevirt#11993

Signed-off-by: Itamar Holder <[email protected]>
  • Loading branch information
iholder101 committed Dec 5, 2024
1 parent 94d0364 commit e7dbe47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/vm-pool-cirros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
labels:
kubevirt.io/vmpool: vm-pool-cirros
spec:
running: true
runStrategy: Always
template:
metadata:
creationTimestamp: null
Expand Down
3 changes: 1 addition & 2 deletions tools/vms-generator/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,6 @@ func GetVMMultiPvc() *v1.VirtualMachine {
func getBaseVMPool(name string, replicas int, selectorLabels map[string]string) *poolv1.VirtualMachinePool {
baseVMISpec := getBaseVMISpec()
replicasInt32 := int32(replicas)
running := true

return &poolv1.VirtualMachinePool{
TypeMeta: metav1.TypeMeta{
Expand All @@ -801,7 +800,7 @@ func getBaseVMPool(name string, replicas int, selectorLabels map[string]string)
Labels: selectorLabels,
},
Spec: v1.VirtualMachineSpec{
Running: &running,
RunStrategy: pointer.P(v1.RunStrategyAlways),
Template: &v1.VirtualMachineInstanceTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: selectorLabels,
Expand Down

0 comments on commit e7dbe47

Please sign in to comment.