Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: add generated changes for crds, rbacs
Browse files Browse the repository at this point in the history
add generated changes for crds, rbacs

Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
Nikhil-Ladha committed Jan 7, 2025
1 parent 2ed4574 commit 438d705
Showing 6 changed files with 93 additions and 41 deletions.
6 changes: 5 additions & 1 deletion api/replication.storage/v1alpha1/zz_generated.deepcopy.go

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

Original file line number Diff line number Diff line change
@@ -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:
@@ -71,6 +70,7 @@ spec:
description: |-
VolumeGroupReplicationClassName is the name of the VolumeGroupReplicationClass from
which this group replication was (or will be) created.
Required.
type: string
volumeGroupReplicationHandle:
description: |-
@@ -83,10 +83,6 @@ spec:
VolumeGroupReplicationContent object is bound.
VolumeGroupReplication.Spec.VolumeGroupReplicationContentName field must reference to
this VolumeGroupReplicationContent's name for the bidirectional binding to be valid.
For a pre-existing VolumeGroupReplicationContent object, name and namespace of the
VolumeGroupReplication object MUST be provided for binding to happen.
This field is immutable after creation.
Required.
properties:
apiVersion:
description: API version of the referent.
@@ -129,24 +125,24 @@ spec:
type: object
x-kubernetes-map-type: atomic
x-kubernetes-validations:
- message: both volumeGroupReplicationRef.name and volumeGroupReplicationRef.namespace
must be set
rule: has(self.name) && has(self.__namespace__)
- message: volumeGroupReplicationRef is immutable
rule: self == oldSelf
- message: volumeGroupReplicationRef.name, volumeGroupReplicationRef.namespace
and volumeGroupReplicationRef.uid must be set if volumeGroupReplicationRef
is defined
rule: 'self != null ? has(self.name) && has(self.__namespace__)
&& has(self.uid) : true'
required:
- provisioner
- source
- volumeGroupReplicationClassName
- volumeGroupReplicationHandle
- volumeGroupReplicationRef
type: object
status:
description: VolumeGroupReplicationContentStatus defines the status of
VolumeGroupReplicationContent
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: |-
Original file line number Diff line number Diff line change
@@ -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
35 changes: 31 additions & 4 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
@@ -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:
29 changes: 13 additions & 16 deletions deploy/controller/crds.yaml
Original file line number Diff line number Diff line change
@@ -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:
@@ -1433,6 +1432,7 @@ spec:
description: |-
VolumeGroupReplicationClassName is the name of the VolumeGroupReplicationClass from
which this group replication was (or will be) created.
Required.
type: string
volumeGroupReplicationHandle:
description: |-
@@ -1445,10 +1445,6 @@ spec:
VolumeGroupReplicationContent object is bound.
VolumeGroupReplication.Spec.VolumeGroupReplicationContentName field must reference to
this VolumeGroupReplicationContent's name for the bidirectional binding to be valid.
For a pre-existing VolumeGroupReplicationContent object, name and namespace of the
VolumeGroupReplication object MUST be provided for binding to happen.
This field is immutable after creation.
Required.
properties:
apiVersion:
description: API version of the referent.
@@ -1491,24 +1487,24 @@ spec:
type: object
x-kubernetes-map-type: atomic
x-kubernetes-validations:
- message: both volumeGroupReplicationRef.name and volumeGroupReplicationRef.namespace
must be set
rule: has(self.name) && has(self.__namespace__)
- message: volumeGroupReplicationRef is immutable
rule: self == oldSelf
- message: volumeGroupReplicationRef.name, volumeGroupReplicationRef.namespace
and volumeGroupReplicationRef.uid must be set if volumeGroupReplicationRef
is defined
rule: 'self != null ? has(self.name) && has(self.__namespace__)
&& has(self.uid) : true'
required:
- provisioner
- source
- volumeGroupReplicationClassName
- volumeGroupReplicationHandle
- volumeGroupReplicationRef
type: object
status:
description: VolumeGroupReplicationContentStatus defines the status of
VolumeGroupReplicationContent
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 +1662,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
35 changes: 31 additions & 4 deletions deploy/controller/rbac.yaml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit 438d705

Please sign in to comment.