Repository navigation
feat(storage): support CDI DataSource fast cloning and decoupled persistent dataDisks - #10
Merged
Merged
Conversation
…istent dataDisks - Add sourceType: dataSource and spec.dataDisks[] to UDSVirtualMachine CRD schema - Implement CDI sourceRef construction in BuildDataVolume for fast storage-layer CoW cloning - Implement secondary data disk attachment and BuildDataDiskPVC with retentionPolicy (Retain/Delete) - Extend uds-vmctl prep to generate central CDI DataSource/DataVolume and consumer VM manifests - Expand unit test suite to 33 passing tests with race detection across controller, CLI, and APIs
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
UDSVirtualMachineAPI types (pkg/apis/uds/v1alpha1/types.go) and CRD (manifests/crd/udsvirtualmachines.uds.dev.yaml) withsourceType: dataSource(dataSourceName,dataSourceNamespace) andspec.dataDisks[].BuildDataVolume,BuildVirtualMachine,BuildDataDiskPVC, andEvaluateStatusFromDataVolumeinpkg/controller/reconciler.goto support CDIsourceRefCoW cloning andretentionPolicy: Retain | Delete(omittingOwnerReferenceson retained PVCs).uds-vmctl prep(cmd/uds-vmctl/main.go,pkg/cli/prep.go) with--golden-image,--data-source-name, and--data-source-nsflags.-race.Problem & Motivation
Implements Milestone v0.5.0 Phase 5A to enable sub-minute VM provisioning from central verified CDI
DataSourcegolden images and preserve stateful application data across OS replacements.NIST 800-53 Compliance Checklist
DataSourceingestion enforces CDI PR #4340 SHA-256 digest verification before cloning.go test -race) test suite passes without regressions (33/33 tests).Air-Gap & Edge Readiness
Testing & Verification
Automated Tests
go test -v -race ./...Live Cluster Verification
kubevirt-sandbox) with cross-namespace CDIDataSourceCoW clone (uds-golden-images->default)retentionPolicy: RetainPVC survivesUDSVirtualMachinedeletionDocumentation