Bug Description
`internal/vm/vm.go` (line 112) sets the deprecated `Running: &running` boolean pointer on the VirtualMachine spec. KubeVirt 1.0+ deprecated this field in favor of `RunStrategy` (e.g., `RunStrategyAlways`, `RunStrategyManual`). While the deprecated field still works, it may be removed in a future KubeVirt release, and the project already depends on KubeVirt v1.7.0.
Steps to Reproduce
- Inspect `internal/vm/vm.go:112`
- Observe that it sets `Running: &running` instead of `RunStrategy`
- This field is deprecated in KubeVirt 1.0+ and may be removed in a future release
Expected Behavior
Replace with `RunStrategy: kubevirtv1.RunStrategyAlways`.
Actual Behavior
Uses deprecated `Running: &running` field which may break in future KubeVirt versions.
Command
virtwork run
Go Version
Not provided
Deployment Mode
Not provided
Additional Context
Severity: Low
Files:
- `internal/vm/vm.go:112` — `Running: &running`
Bug Description
`internal/vm/vm.go` (line 112) sets the deprecated `Running: &running` boolean pointer on the VirtualMachine spec. KubeVirt 1.0+ deprecated this field in favor of `RunStrategy` (e.g., `RunStrategyAlways`, `RunStrategyManual`). While the deprecated field still works, it may be removed in a future KubeVirt release, and the project already depends on KubeVirt v1.7.0.
Steps to Reproduce
Expected Behavior
Replace with `RunStrategy: kubevirtv1.RunStrategyAlways`.
Actual Behavior
Uses deprecated `Running: &running` field which may break in future KubeVirt versions.
Command
virtwork run
Go Version
Not provided
Deployment Mode
Not provided
Additional Context
Severity: Low
Files: