Skip to content

Commit

Permalink
change replicationsource name from cg to pvc name
Browse files Browse the repository at this point in the history
Signed-off-by: youhangwang <[email protected]>
  • Loading branch information
youhangwang committed Jun 12, 2024
1 parent 5cad107 commit 59e89be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions controllers/cephfscg/volumegroupsourcehandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
var (
VolumeGroupSnapshotNameFormat = "cephfscg-%s"
RestorePVCinCGNameFormat = "cephfscg-%s"
ReplicationSourceNameFormat = "cephfscg-%s"
SnapshotGroup = "snapshot.storage.k8s.io"
SnapshotGroupKind = "VolumeSnapshot"
)
Expand Down Expand Up @@ -387,7 +386,7 @@ func (h *volumeGroupSourceHandler) CreateOrUpdateReplicationSourceForRestoredPVC
replicationSourceNamepspace := h.VolumeGroupSnapshotNamespace
replicationSource := &volsyncv1alpha1.ReplicationSource{
ObjectMeta: metav1.ObjectMeta{
Name: restoredPVC.RestoredPVCName,
Name: restoredPVC.SourcePVCName,
Namespace: replicationSourceNamepspace,
},
}
Expand Down
2 changes: 1 addition & 1 deletion controllers/replicationgroupsource_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ At the end of each sync, VolumeGroupSnapshot, Restored PVC and ReplicationSource
2. VolumeGroupSnapshot Name = cephfscg-<ReplicationGroupSource Name>
3. Restored PVC Name = cephfscg-<Application PVC Name>
4. ReplicationSource Name = cephfscg-<Application PVC Name>
4. ReplicationSource Name = <Application PVC Name>
5. ReplicationDestinationServiceName = volsync-rsync-tls-dst-<Application PVC Name>.<RD Namespace>.svc.clusterset.local
6. Volsync Secret Name = <VRG Name>-vs-secret
Expand Down

0 comments on commit 59e89be

Please sign in to comment.