Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use schedule instead of VolumeReplicationClass #182

Commits on Aug 10, 2021

  1. use schedule instead of VolumeReplicationClass

    VolumeReplicationClass field in VolumeReplicationGroup is
    nothing but a string. Instead of that, use a schedule which
    is then used in combination with the storage driver for the
    pvc (obtained from storageclass) by the VolumeReplicationGroup
    to determine the appropriate VolumeReplicationClass to use.
    
    HUB/DRPC (Previously AVR):
    - modify DRPolicy to include schedule along with DR prepared
      clusters
    - Make DRPC (previously AVR) refer to the DRPolicy schedule
      while creating VolumeReplicationGroup and use that as the
      schedule for VolumeReplicationGroup.
    
    Managed Cluster:
    - While reconciling VolumeReplicationGroup, for each of the
      PVC obtained via label selection, do this
        - storagedriver = StorageDriver(StorageClass(pvc))
        - Get All the VolumeReplicationClasses in the cluster
        - For each VolumeReplicationClass (chosen via label selector)
            if (replicationdriver == storagedriver and
                 replicationSchedule == vrg.Spec.Schedule)
                 chosenReplicationClass = VolumeReplicationClass
    
    Signed-off-by: Raghavendra M <raghavendra@redhat.com>
    raghavendrabhat committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    0aa1fc0 View commit details
    Browse the repository at this point in the history