Skip to content

Commit

Permalink
Add storageid and replicationid label to volumereplicationgroup
Browse files Browse the repository at this point in the history
Signed-off-by: Elena Gershkovich <[email protected]>
  • Loading branch information
ELENAGER authored and nirs committed Dec 8, 2024
1 parent e3f589e commit c2ec69f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions test/addons/rbd-mirror/start
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ def configure_rbd_mirroring(cluster, peer_info):
yaml = template.substitute(cluster=cluster)
kubectl.apply("--filename=-", input=yaml, context=cluster)

template = drenv.template("start-data/vgrc-sample.yaml")
yaml = template.substitute(cluster=cluster, pool=POOL_NAME)
kubectl.apply("--filename=-", input=yaml, context=cluster)

print(f"Apply rbd mirror to cluster '{cluster}'")
kubectl.apply("--kustomize=start-data", context=cluster)

Expand Down
1 change: 0 additions & 1 deletion test/addons/rbd-mirror/start-data/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

---
resources:
- vgrc-sample.yaml
- rbd-mirror.yaml

namespace: rook-ceph
9 changes: 7 additions & 2 deletions test/addons/rbd-mirror/start-data/vgrc-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ apiVersion: replication.storage.openshift.io/v1alpha1
kind: VolumeGroupReplicationClass
metadata:
name: vgrc-sample
labels:
ramendr.openshift.io/storageid: rook-ceph-$cluster-1
ramendr.openshift.io/replicationid: rook-ceph-replication-1
spec:
provisioner: rook-ceph.rbd.csi.ceph.com
parameters:
replication.storage.openshift.io/replication-secret-name: rook-csi-rbd-provisioner
replication.storage.openshift.io/replication-secret-namespace: rook-ceph
clusterID: rook-ceph
pool: $pool
replication.storage.openshift.io/group-replication-secret-name: rook-csi-rbd-provisioner
replication.storage.openshift.io/group-replication-secret-namespace: rook-ceph
schedulingInterval: 1m

0 comments on commit c2ec69f

Please sign in to comment.