Skip to content

feat(pool): add UDSVirtualMachinePool rolling fleet updates and ADRs - #12

Merged
celttechie merged 1 commit into
mainfrom
feat/v0.5.0-vm-pool-rolling-updates
Nov 14, 2026
Merged

celttechie merged 1 commit into
mainfrom
feat/v0.5.0-vm-pool-rolling-updates

Conversation

@celttechie

Copy link
Copy Markdown
Owner

Summary of Changes

  • Add UDSVirtualMachinePool (udsvmpool) Go API types, DeepCopy methods, and manifests/crd/udsvirtualmachinepools.uds.dev.yaml CRD.
  • Implement PoolReconciler (pkg/controller/pool_reconciler.go) with deterministic template revision hashing (ComputeTemplateHash), maxSurge replacement creation, and maxUnavailable readiness-gated draining.
  • Register PoolReconciler in cmd/uds-vm-operator/main.go, add udsvirtualmachinepools and cdi.kubevirt.io datavolumes/source (create) RBAC permissions in manifests/operator/deployment.yaml, and include the pool CRD in zarf.yaml.
  • Add Architecture Decision Records in docs/adr/ (0001, 0002, 0003).

Problem & Motivation

Completes Milestone v0.5.0 Phase 5C by enabling zero-downtime rolling updates across UDSVirtualMachine fleets while preserving all NIST 800-53 compliance controls on every replica, and formalizes architectural decisions in docs/adr/.

NIST 800-53 Compliance Checklist

Check all applicable controls impacted or verified by this change:

  • SC-7 (Boundary Protection): Zero-Trust NetworkPolicy isolation maintained or updated on every pool replica.
  • AC-3 / IA-5 (Access Control & Identification): Cloud-Init hardening, SSH password restrictions, and FIPS enforcement verified.
  • SI-7 (Software & Information Integrity): CDI DataVolume upload/DataSource cryptographic checksum verification (sha256:<hex>) validated.
  • SA-11 (Developer Security Testing): Automated Go (go test -race) test suite passes without regressions (43/43 tests).
  • CM-6 (Configuration Settings): CRD and declarative manifests pass validation schema.

Air-Gap & Edge Readiness

  • No unflattened QCOW2 external backing chains introduced.
  • All required artifacts/dependencies can be bundled in disconnected Zarf packages.
  • +6% CDI filesystem overhead calculation validated for storage sizing.

Testing & Verification

Automated Tests

go test -v -race ./...

Live Cluster Verification

  • Tested on live K3s / KubeVirt cluster (kubevirt-sandbox)
  • Deployed 2-replica UDSVirtualMachinePool (test-fleet) cloning uds-golden-images/golden-linux-base $\rightarrow$ Ready in 33s (f1f8bc544e)
  • Patched cpus: 2 $\rightarrow$ verified Updating (maxSurge: 1, maxUnavailable: 0) to Ready (2/2 on 278ee74bbc at 76s) with clean drain of old replicas

Documentation

  • docs/adr/0001–0003 added.
  • CRD manifests updated and synchronized with Go types.

@celttechie
celttechie merged commit be5eed0 into main Nov 14, 2026
3 checks passed
@celttechie
celttechie deleted the feat/v0.5.0-vm-pool-rolling-updates branch November 14, 2026 03:37
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.

1 participant