Skip to content

Block DRPC until VM DRPolicy has Validated=True and replicationID#16

Merged
mhjacks merged 2 commits into
validatedpatterns:mainfrom
mhjacks:drpolicy-vm-prerequisite
Jun 24, 2026
Merged

Block DRPC until VM DRPolicy has Validated=True and replicationID#16
mhjacks merged 2 commits into
validatedpatterns:mainfrom
mhjacks:drpolicy-vm-prerequisite

Conversation

@mhjacks

@mhjacks mhjacks commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extend the existing drcluster-validation job (Argo CD sync-wave 8) to block DRPC (sync-wave 10) until the VM DRPolicy is Validated=True and status.async.peerClasses includes a non-empty replicationID for the virtualization storage class.
  • Add drpc.vmStorageClassName (default ocs-storagecluster-ceph-rbd-virtualization) and document the VM protection prerequisite in README.
  • Add helm unit tests for VM vs non-VM validation job behavior.

Test plan

  • make test (helm lint + 20 unit tests pass)
  • make helm-docs
  • Sync chart on hub; confirm drcluster-validation-2m-vm waits when DRPolicy lacks replicationID, then succeeds once populated
  • Confirm DRPC (gitops-vm-protection) applies only after validation job completes
  • Confirm drcluster-validation-2m-novm is unchanged (no VM prerequisite env vars)

Made with Cursor

Extend drcluster-validation (sync-wave 8) to gate DRPC deployment on DRPolicy
peer-class replicationID for the virtualization storage class, and document the
prerequisite in README and drpc.vmStorageClassName.

Co-authored-by: Cursor <cursoragent@cursor.com>
Split the helm-docs comment across two lines to satisfy super-linter's
200-character limit.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mhjacks mhjacks merged commit 11bd0a8 into validatedpatterns:main Jun 24, 2026
3 checks passed
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