Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ It is possible to link multiple `StorageClass` and `VolumeReplicationClass` obje

The controller also knows that the `production-ssd-daily` `VolumeReplicationClass` can be selected using the `daily` selector.

Note that the `provisioner` of the `VolumeReplicationClass` must match the `provisioner` of the `StorageClass` it is linked to.

#### 3. Annotate your PVC or Namespace

Add the `replication.superphenix.net/classSelector` annotation to your PVC or its Namespace:
Expand Down
2 changes: 2 additions & 0 deletions internal/replicator/vrc.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ func filterVrcFromSelector(group, selector, pvcProvisioner string) ([]string, er
// Allow the pvcProvisioner to be empty, as some CSI may not place it in any annotation.
if vrcProvisioner == pvcProvisioner || pvcProvisioner == "" {
classes = append(classes, item.GetName())
} else {
klog.V(2).Infof("discarded VRC %s as it doesn't have the same provisioner as the PVC, got %s, expected %s", item.GetName(), vrcProvisioner, pvcProvisioner)
}
}

Expand Down