Skip to content

chore(api): remove deprecated VirtualMachineRestore resource#2368

Open
hardcoretime wants to merge 1 commit into
mainfrom
chore/api/remove-vmrestore
Open

chore(api): remove deprecated VirtualMachineRestore resource#2368
hardcoretime wants to merge 1 commit into
mainfrom
chore/api/remove-vmrestore

Conversation

@hardcoretime
Copy link
Copy Markdown
Contributor

Description

Removes the deprecated VirtualMachineRestore (vmrestore) resource and its controller from the virtualization module.

The following components have been removed:

  • The vmrestore controller and all internal components (watchers, restorers, lifecycle handlers)
  • The VirtualMachineRestore API type definition
  • The VirtualMachineRestore CRD and its Russian localization
  • Related indexers, webhooks, and annotations

The common types NameReplacement and NameReplacementFrom were moved to a separate file as they are still used by VirtualMachineOperation.

Why do we need it, and what problem does it solve?

The VirtualMachineRestore resource was marked as deprecated. Users should use VirtualMachineOperation with type Restore or Clone instead. This commit completely removes the deprecated resource to clean up the codebase.

What is the expected result?

The VirtualMachineRestore resource is no longer available in the API. Users must use VirtualMachineOperation for restore operations.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: api
type: chore
summary: "Remove deprecated VirtualMachineRestore resource and its controller."

The VirtualMachineRestore resource is deprecated and should be fully removed.
Use VirtualMachineOperation with type Restore/Clone instead.

This commit removes:
- The vmrestore controller and all its internal components
- The VirtualMachineRestore API type and CRD
- Related indexers, webhooks, and annotations

Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
@hardcoretime hardcoretime added this to the v1.9.0 milestone May 19, 2026
@hardcoretime hardcoretime added the e2e/run Run e2e test on cluster of PR author label May 19, 2026
@deckhouse-BOaTswain
Copy link
Copy Markdown
Contributor

deckhouse-BOaTswain commented May 19, 2026

Workflow has started.
Follow the progress here: Workflow Run

The target step completed with status: failure.

@deckhouse-BOaTswain deckhouse-BOaTswain removed the e2e/run Run e2e test on cluster of PR author label May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants