diff --git a/config/crd/bases/replication.storage.openshift.io_volumegroupreplicationcontents.yaml b/config/crd/bases/replication.storage.openshift.io_volumegroupreplicationcontents.yaml index e77032c77..7c29eec36 100644 --- a/config/crd/bases/replication.storage.openshift.io_volumegroupreplicationcontents.yaml +++ b/config/crd/bases/replication.storage.openshift.io_volumegroupreplicationcontents.yaml @@ -52,9 +52,8 @@ spec: type: string source: description: |- - Source specifies whether the snapshot is (or should be) dynamically provisioned + Source specifies whether the volume is (or should be) dynamically provisioned or already exists, and just requires a Kubernetes object representation. - This field is immutable after creation. Required. properties: volumeHandles: @@ -146,7 +145,7 @@ spec: properties: persistentVolumeRefList: description: |- - PersistentVolumeRefList is the list of of PV for the group replication + PersistentVolumeRefList is the list of PV for the group replication The maximum number of allowed PV in the group is 100. items: description: |- diff --git a/config/crd/bases/replication.storage.openshift.io_volumegroupreplications.yaml b/config/crd/bases/replication.storage.openshift.io_volumegroupreplications.yaml index 067bb5599..b53734eae 100644 --- a/config/crd/bases/replication.storage.openshift.io_volumegroupreplications.yaml +++ b/config/crd/bases/replication.storage.openshift.io_volumegroupreplications.yaml @@ -131,11 +131,12 @@ spec: - message: volumeGroupReplicationContentName is immutable rule: self == oldSelf volumeReplicationClassName: - description: volumeReplicationClassName is the volumeReplicationClass - name for VolumeReplication object + description: |- + volumeReplicationClassName is the volumeReplicationClass name for the VolumeReplication object + created for this volumeGroupReplication type: string x-kubernetes-validations: - - message: volumReplicationClassName is immutable + - message: volumeReplicationClassName is immutable rule: self == oldSelf volumeReplicationName: description: Name of the VolumeReplication object created for this diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index e311fe0fc..99fb6aafe 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -8,7 +8,6 @@ rules: - "" resources: - namespaces - - persistentvolumes - pods verbs: - get @@ -30,6 +29,15 @@ rules: - persistentvolumeclaims/finalizers verbs: - update +- apiGroups: + - "" + resources: + - persistentvolumes + verbs: + - get + - list + - update + - watch - apiGroups: - coordination.k8s.io resources: @@ -82,11 +90,19 @@ rules: - get - patch - update +- apiGroups: + - replication.storage.openshift.io + resources: + - volumegroupreplicationclasses + - volumereplicationclasses + verbs: + - get + - list + - watch - apiGroups: - replication.storage.openshift.io resources: - volumegroupreplicationcontents - - volumegroupreplications verbs: - create - delete @@ -101,7 +117,6 @@ rules: - volumegroupreplicationcontents/finalizers - volumegroupreplications/finalizers - volumereplications/finalizers - - volumereplications/status verbs: - update - apiGroups: @@ -116,20 +131,32 @@ rules: - apiGroups: - replication.storage.openshift.io resources: - - volumereplicationclasses + - volumegroupreplications verbs: - get - list + - patch + - update - watch - apiGroups: - replication.storage.openshift.io resources: - volumereplications verbs: + - create + - delete - get - list - update - watch +- apiGroups: + - replication.storage.openshift.io + resources: + - volumereplications/status + verbs: + - get + - list + - update - apiGroups: - storage.k8s.io resources: diff --git a/deploy/controller/crds.yaml b/deploy/controller/crds.yaml index 077b89f67..fc2b54216 100644 --- a/deploy/controller/crds.yaml +++ b/deploy/controller/crds.yaml @@ -1414,9 +1414,8 @@ spec: type: string source: description: |- - Source specifies whether the snapshot is (or should be) dynamically provisioned + Source specifies whether the volume is (or should be) dynamically provisioned or already exists, and just requires a Kubernetes object representation. - This field is immutable after creation. Required. properties: volumeHandles: @@ -1508,7 +1507,7 @@ spec: properties: persistentVolumeRefList: description: |- - PersistentVolumeRefList is the list of of PV for the group replication + PersistentVolumeRefList is the list of PV for the group replication The maximum number of allowed PV in the group is 100. items: description: |- @@ -1666,11 +1665,12 @@ spec: - message: volumeGroupReplicationContentName is immutable rule: self == oldSelf volumeReplicationClassName: - description: volumeReplicationClassName is the volumeReplicationClass - name for VolumeReplication object + description: |- + volumeReplicationClassName is the volumeReplicationClass name for the VolumeReplication object + created for this volumeGroupReplication type: string x-kubernetes-validations: - - message: volumReplicationClassName is immutable + - message: volumeReplicationClassName is immutable rule: self == oldSelf volumeReplicationName: description: Name of the VolumeReplication object created for this diff --git a/deploy/controller/rbac.yaml b/deploy/controller/rbac.yaml index 8dbaf23c3..af39df14a 100644 --- a/deploy/controller/rbac.yaml +++ b/deploy/controller/rbac.yaml @@ -101,7 +101,6 @@ rules: - "" resources: - namespaces - - persistentvolumes - pods verbs: - get @@ -123,6 +122,15 @@ rules: - persistentvolumeclaims/finalizers verbs: - update +- apiGroups: + - "" + resources: + - persistentvolumes + verbs: + - get + - list + - update + - watch - apiGroups: - coordination.k8s.io resources: @@ -175,11 +183,19 @@ rules: - get - patch - update +- apiGroups: + - replication.storage.openshift.io + resources: + - volumegroupreplicationclasses + - volumereplicationclasses + verbs: + - get + - list + - watch - apiGroups: - replication.storage.openshift.io resources: - volumegroupreplicationcontents - - volumegroupreplications verbs: - create - delete @@ -194,7 +210,6 @@ rules: - volumegroupreplicationcontents/finalizers - volumegroupreplications/finalizers - volumereplications/finalizers - - volumereplications/status verbs: - update - apiGroups: @@ -209,20 +224,32 @@ rules: - apiGroups: - replication.storage.openshift.io resources: - - volumereplicationclasses + - volumegroupreplications verbs: - get - list + - patch + - update - watch - apiGroups: - replication.storage.openshift.io resources: - volumereplications verbs: + - create + - delete - get - list - update - watch +- apiGroups: + - replication.storage.openshift.io + resources: + - volumereplications/status + verbs: + - get + - list + - update - apiGroups: - storage.k8s.io resources: