Skip to content

Commit

Permalink
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 <[email protected]>
  • Loading branch information
Nikhil-Ladha committed Jan 16, 2025
1 parent f380a3f commit 60c4c9b
Show file tree
Hide file tree
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
Expand Up @@ -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:
Expand All @@ -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: |-
Expand All @@ -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.
Expand Down Expand Up @@ -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: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 31 additions & 4 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ rules:
- ""
resources:
- namespaces
- persistentvolumes
- pods
verbs:
- get
Expand All @@ -30,6 +29,15 @@ rules:
- persistentvolumeclaims/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
- persistentvolumes
verbs:
- get
- list
- update
- watch
- apiGroups:
- coordination.k8s.io
resources:
Expand Down Expand Up @@ -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
Expand All @@ -101,7 +117,6 @@ rules:
- volumegroupreplicationcontents/finalizers
- volumegroupreplications/finalizers
- volumereplications/finalizers
- volumereplications/status
verbs:
- update
- apiGroups:
Expand All @@ -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:
Expand Down
29 changes: 13 additions & 16 deletions deploy/controller/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |-
Expand All @@ -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.
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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
Expand Down
35 changes: 31 additions & 4 deletions deploy/controller/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ rules:
- ""
resources:
- namespaces
- persistentvolumes
- pods
verbs:
- get
Expand All @@ -123,6 +122,15 @@ rules:
- persistentvolumeclaims/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
- persistentvolumes
verbs:
- get
- list
- update
- watch
- apiGroups:
- coordination.k8s.io
resources:
Expand Down Expand Up @@ -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
Expand All @@ -194,7 +210,6 @@ rules:
- volumegroupreplicationcontents/finalizers
- volumegroupreplications/finalizers
- volumereplications/finalizers
- volumereplications/status
verbs:
- update
- apiGroups:
Expand All @@ -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:
Expand Down

0 comments on commit 60c4c9b

Please sign in to comment.