Skip to content

Comments

feat(vmsnapshot, vdsnapshot): add d8v prefix to snapshot supplemental resources#1733

Merged
loktev-d merged 23 commits intomainfrom
feat/vdsnapshot/d8v-prefix-snapshot-restore
Feb 13, 2026
Merged

feat(vmsnapshot, vdsnapshot): add d8v prefix to snapshot supplemental resources#1733
loktev-d merged 23 commits intomainfrom
feat/vdsnapshot/d8v-prefix-snapshot-restore

Conversation

@loktev-d
Copy link
Contributor

@loktev-d loktev-d commented Nov 24, 2025

Description

Implements d8v prefixing for VirtualMachineSnapshot and VirtualDiskSnapshot service resources according to the ADR for consistent naming across the virtualization module.

Key changes:

  • VMS Secret: Changed from <name> to d8v-vms-<name>-<uid> format
  • VDS VolumeSnapshot: Changed from <name> to d8v-vds-<name>-<uid> format
  • Added CommonSupplement() method to supplements.Generator
  • Resources are now fetched using status fields (.Status.VirtualMachineSnapshotSecretName and .Status.VolumeSnapshotName)

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

What is the expected result?

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: vmsnapshot
type: feature
summary: add d8v prefix to snapshot supplemental resources

Signed-off-by: Daniil Loktev <lokt.daniil@gmail.com>
@loktev-d loktev-d changed the title feat(vmsnapshot, vdsnapshot, vmrestore): add d8v prefix to service resources feat(vmsnapshot, vdsnapshot): add d8v prefix to service resources Nov 24, 2025
loktev-d and others added 8 commits November 24, 2025 11:42
Signed-off-by: Daniil Loktev <lokt.daniil@gmail.com>
Signed-off-by: Daniil Loktev <lokt.daniil@gmail.com>
Signed-off-by: Daniil Loktev <lokt.daniil@gmail.com>
Signed-off-by: Daniil Loktev <lokt.daniil@gmail.com>
Signed-off-by: Daniil Loktev <lokt.daniil@gmail.com>
Signed-off-by: Daniil Loktev <lokt.daniil@gmail.com>
Signed-off-by: Daniil Loktev <lokt.daniil@gmail.com>
@loktev-d loktev-d changed the title feat(vmsnapshot, vdsnapshot): add d8v prefix to service resources feat(vmsnapshot, vdsnapshot): add d8v prefix to snapshot supplemental resources Nov 24, 2025
@loktev-d loktev-d added this to the v1.2.0 milestone Nov 24, 2025
Isteb4k
Isteb4k previously approved these changes Nov 24, 2025
Signed-off-by: Daniil Loktev <lokt.daniil@gmail.com>
@loktev-d loktev-d added the e2e/run Run e2e test on cluster of PR author label Nov 24, 2025
@deckhouse-BOaTswain
Copy link
Contributor

deckhouse-BOaTswain commented Nov 24, 2025

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 Nov 24, 2025
Signed-off-by: Daniil Loktev <lokt.daniil@gmail.com>
@Isteb4k Isteb4k modified the milestones: v1.2.0, v1.3.0 Nov 26, 2025
defer func() { conditions.SetCondition(cb, &vdSnapshot.Status.Conditions) }()

vs, err := h.snapshotter.GetVolumeSnapshot(ctx, vdSnapshot.Name, vdSnapshot.Namespace)
vs, err := h.snapshotter.GetVolumeSnapshot(ctx, vdSnapshot.Status.VolumeSnapshotName, vdSnapshot.Namespace)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should generate VolumeSnapshotName beforehand to prevent any panics related to VirtualDiskSnapshot status.

@loktev-d loktev-d marked this pull request as draft December 4, 2025 12:29
Signed-off-by: Daniil Loktev <lokt.daniil@gmail.com>
@nevermarine nevermarine modified the milestones: v1.3.0, v1.4.0 Dec 16, 2025
@nevermarine nevermarine modified the milestones: v1.4.0, v1.5.0 Jan 23, 2026
@loktev-d loktev-d added the e2e/run Run e2e test on cluster of PR author label Jan 28, 2026
@deckhouse-BOaTswain
Copy link
Contributor

deckhouse-BOaTswain commented Jan 28, 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 Jan 28, 2026
@loktev-d loktev-d marked this pull request as ready for review February 4, 2026 07:19
loktev-d and others added 2 commits February 6, 2026 10:40
hardcoretime
hardcoretime previously approved these changes Feb 6, 2026
@nevermarine nevermarine modified the milestones: v1.5.0, v1.6.0 Feb 9, 2026
loktev-d and others added 2 commits February 11, 2026 09:45
Signed-off-by: Daniil Loktev <lokt.daniil@gmail.com>
@loktev-d loktev-d added the e2e/run Run e2e test on cluster of PR author label Feb 12, 2026
@deckhouse-BOaTswain
Copy link
Contributor

deckhouse-BOaTswain commented Feb 12, 2026

Workflow has started.
Follow the progress here: Workflow Run

The target step completed with status: success.

@deckhouse-BOaTswain deckhouse-BOaTswain removed the e2e/run Run e2e test on cluster of PR author label Feb 12, 2026
@loktev-d loktev-d merged commit b715059 into main Feb 13, 2026
77 checks passed
@loktev-d loktev-d deleted the feat/vdsnapshot/d8v-prefix-snapshot-restore branch February 13, 2026 07:20
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.

5 participants