Skip to content

fix: replace deprecated Running field with RunStrategy in VM spec#39

Merged
mrhillsman merged 1 commit into
mainfrom
fix/vm-runstrategy-issue-9
May 21, 2026
Merged

fix: replace deprecated Running field with RunStrategy in VM spec#39
mrhillsman merged 1 commit into
mainfrom
fix/vm-runstrategy-issue-9

Conversation

@mrhillsman

Copy link
Copy Markdown
Contributor

Replace the deprecated Running: &running boolean pointer field with RunStrategy: kubevirtv1.RunStrategyAlways in the VirtualMachine spec. The Running field was deprecated in KubeVirt 1.0+ and may be removed in future releases.

Also updated the corresponding test to verify RunStrategy instead of the deprecated Running field.

Fixes #9

Replace the deprecated `Running: &running` boolean pointer field
with `RunStrategy: kubevirtv1.RunStrategyAlways` in the VirtualMachine
spec. The Running field was deprecated in KubeVirt 1.0+ and may be
removed in future releases.

Also updated the corresponding test to verify RunStrategy instead
of the deprecated Running field.

Fixes #9

Signed-Off-By: Melvin Hillsman <mhillsma@redhat.com>
@exe-prow-github-app
exe-prow-github-app Bot requested review from jomkz and skattoju May 20, 2026 05:19
@exe-prow-github-app

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrhillsman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@exe-prow-github-app exe-prow-github-app Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 20, 2026
@mrhillsman
mrhillsman removed request for jomkz and skattoju May 21, 2026 02:49
@mrhillsman

Copy link
Copy Markdown
Contributor Author

Verified via cpu workload VM config:

apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
  annotations:
    kubemacpool.io/transaction-timestamp: '2026-05-21T04:06:36.025202251Z'
    kubevirt.io/latest-observed-api-version: v1
    kubevirt.io/storage-observed-api-version: v1
  resourceVersion: '71363250'
  name: virtwork-cpu-0
  uid: 198dcf33-2757-4306-b983-bb9298a36bfd
  creationTimestamp: '2026-05-21T04:06:35Z'
  generation: 1
  ...
  namespace: virtwork
  finalizers:
    - kubevirt.io/virtualMachineControllerFinalize
  labels:
    app.kubernetes.io/component: cpu
    app.kubernetes.io/managed-by: virtwork
    app.kubernetes.io/name: virtwork-cpu
    virtwork/run-id: 6668618a-9aef-42ca-979b-14fc1cfcebcd
spec:
  runStrategy: Always

@mrhillsman
mrhillsman merged commit a811547 into main May 21, 2026
3 of 4 checks passed
@mrhillsman
mrhillsman deleted the fix/vm-runstrategy-issue-9 branch May 22, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: VM spec uses deprecated Running: true field instead of RunStrategy

1 participant