Skip to content

Commit

Permalink
replication: add missing VRC name for VGR
Browse files Browse the repository at this point in the history
we need to have VRC name to create the VR, this
PR adds a new field to the VGR to pass down
the VRC name for the VolumeReplication object.

Signed-off-by: Madhu Rajanna <[email protected]>
  • Loading branch information
Madhu-1 committed Jun 20, 2024
1 parent 650ffb2 commit 265239b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ type VolumeGroupReplicationSpec struct {
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="volumeGroupReplicationClassName is immutable"
VolumeGroupReplicationClassName string `json:"volumeGroupReplicationClassName"`

// volumeReplicationClassName is the volumeReplicationClass name for VolumeReplication object
// +kubebuilder:validation:Required
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="volumReplicationClassName is immutable"
VolumeReplicationClassName string `json:"volumeReplicationClassName"`

// Name of the VolumeReplication object created for this volumeGroupReplication
// +kubebuilder:validation:Optional
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="volumeReplicationName is immutable"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ spec:
x-kubernetes-validations:
- message: volumeGroupReplicationContentName is immutable
rule: self == oldSelf
volumeReplicationClassName:
description: volumeReplicationClassName is the volumeReplicationClass
name for VolumeReplication object
type: string
x-kubernetes-validations:
- message: volumReplicationClassName is immutable
rule: self == oldSelf
volumeReplicationName:
description: Name of the VolumeReplication object created for this
volumeGroupReplication
Expand All @@ -142,6 +149,7 @@ spec:
- replicationState
- source
- volumeGroupReplicationClassName
- volumeReplicationClassName
type: object
status:
description: VolumeGroupReplicationStatus defines the observed state of
Expand Down
8 changes: 8 additions & 0 deletions deploy/controller/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,13 @@ spec:
x-kubernetes-validations:
- message: volumeGroupReplicationContentName is immutable
rule: self == oldSelf
volumeReplicationClassName:
description: volumeReplicationClassName is the volumeReplicationClass
name for VolumeReplication object
type: string
x-kubernetes-validations:
- message: volumReplicationClassName is immutable
rule: self == oldSelf
volumeReplicationName:
description: Name of the VolumeReplication object created for this
volumeGroupReplication
Expand All @@ -1165,6 +1172,7 @@ spec:
- replicationState
- source
- volumeGroupReplicationClassName
- volumeReplicationClassName
type: object
status:
description: VolumeGroupReplicationStatus defines the observed state of
Expand Down

0 comments on commit 265239b

Please sign in to comment.