8000 Add group related API support across peer classes by ShyamsundarR · Pull Request #2015 · RamenDR/ramen · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add group related API support across peer classes #2015

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

Merged
merged 1 commit into from
Jun 17, 2025
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
8 changes: 8 additions & 0 deletions api/v1alpha1/drclusterconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,17 @@ type DRClusterConfigStatus struct {
// storageid label
VolumeSnapshotClasses []string `json:"volumeSnapshotClasses,omitempty"`

// VolumeGroupSnapshotClasses lists the detected volume group snapshot classes on the cluster that carry the ramen
// storageid label
VolumeGroupSnapshotClasses []string `json:"volumeGroupSnapshotClasses,omitempty"`

// VolumeReplicationClasses lists the detected volume replication classes on the cluster that carry the ramen
// replicationid label
VolumeReplicationClasses []string `json:"volumeReplicationClasses,omitempty"`

// VolumeGroupReplicationClasses lists the detected volume group replication classes on the clus 8000 ter that carry the
// ramen replicationid label
VolumeGroupReplicationClasses []string `json:"volumeGroupReplicationClasses,omitempty"`
}

//+kubebuilder:object:root=true
Expand Down
6 changes: 6 additions & 0 deletions api/v1alpha1/drpolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ type PeerClass struct {
// ClusterIDs is a list of two clusterIDs that represent this peer relationship for a common StorageClassName
// The IDs are based on the value of the metadata.uid of the kube-system namespace
ClusterIDs []string `json:"clusterIDs,omitempty"`

// Grouping reflects if PVCs using the StorageClassName can be grouped for replication, via VolumeGroupSnapshotClass
// if ReplicationID is empty, or via VolumeGroupReplicationClass otherwise. This is true only when grouping can be
// supported across the clusters in the ClusterIDs list.
//+optional
Grouping bool `json:"grouping,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should change this name to something like SupportsVolumeGrouping

}

const (
Expand Down
10 changes: 10 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions config/crd/bases/ramendr.openshift.io_drclusterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,20 @@ spec:
items:
type: string
type: array
volumeGroupReplicationClasses:
description: |-
VolumeGroupReplicationClasses lists the detected volume group replication classes on the cluster that carry the
ramen replicationid label
items:
type: string
type: array
volumeGroupSnapshotClasses:
description: |-
VolumeGroupSnapshotClasses lists the detected volume group snapshot classes on the cluster that carry the ramen
storageid label
items:
type: string
type: array
volumeReplicationClasses:
description: |-
VolumeReplicationClasses lists the detected volume replication classes on the cluster that carry the ramen
Expand Down
12 changes: 12 additions & 0 deletions config/crd/bases/ramendr.openshift.io_drpolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ spec:
items:
type: string
type: array
grouping:
description: |-
Grouping reflects if PVCs using the StorageClassName can be grouped for replication, via VolumeGroupSnapshotClass
if ReplicationID is empty, or via VolumeGroupReplicationClass otherwise. This is true only when grouping can be
supported across the clusters in the ClusterIDs list.
type: boolean
replicationID:
description: |-
ReplicationID is the common value for the label "ramendr.openshift.io/replicationID" on the corresponding
Expand Down Expand Up @@ -340,6 +346,12 @@ spec:
items:
type: string
type: array
grouping:
description: |-
Grouping reflects if PVCs using the StorageClassName can be grouped for replication, via VolumeGroupSnapshotClass
if ReplicationID is empty, or via VolumeGroupReplicationClass otherwise. This is true only when grouping can be
supported across the clusters in the ClusterIDs list.
type: boolean
replicationID:
description: |-
ReplicationID is the common value for the label "ramendr.openshift.io/replicationID" on the corresponding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ spec:
items:
type: string
type: array
grouping:
description: |-
Grouping reflects if PVCs using the StorageClassName can be grouped for replication, via VolumeGroupSnapshotClass
if ReplicationID is empty, or via VolumeGroupReplicationClass otherwise. This is true only when grouping can be
supported across the clusters in the ClusterIDs list.
type: boolean
replicationID:
description: |-
ReplicationID is the common value for the label "ramendr.openshift.io/replicationID" on the corresponding
Expand Down Expand Up @@ -481,6 +487,12 @@ spec:
items:
type: string
type: array
grouping:
description: |-
Grouping reflects if PVCs using the StorageClassName can be grouped for replication, via VolumeGroupSnapshotClass
if ReplicationID is empty, or via VolumeGroupReplicationClass otherwise. This is true only when grouping can be
supported across the clusters in the ClusterIDs list.
type: boolean
replicationID:
description: |-
ReplicationID is the common value for the label "ramendr.openshift.io/replicationID" on the corresponding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ spec:
items:
type: string
type: array
grouping:
description: |-
Grouping reflects if PVCs using the StorageClassName can be grouped for replication, via VolumeGroupSnapshotClass
if ReplicationID is empty, or via VolumeGroupReplicationClass otherwise. This is true only when grouping can be
supported across the clusters in the ClusterIDs list.
type: boolean
replicationID:
description: |-
ReplicationID is the common value for the label "ramendr.openshift.io/replicationID" on the corresponding
Expand Down Expand Up @@ -430,6 +436,12 @@ spec:
items:
type: string
type: array
5E3C grouping:
description: |-
Grouping reflects if PVCs using the StorageClassName can be grouped for replication, via VolumeGroupSnapshotClass
if ReplicationID is empty, or via VolumeGroupReplicationClass otherwise. This is true only when grouping can be
supported across the clusters in the ClusterIDs list.
type: boolean
replicationID:
description: |-
ReplicationID is the common value for the label "ramendr.openshift.io/replicationID" on the corresponding
Expand Down
Loading
0