Skip to content

Commit

Permalink
bundle: add nfs SA to the CSV
Browse files Browse the repository at this point in the history
Signed-off-by: Nitin Goyal <[email protected]>
  • Loading branch information
iamniting committed Aug 14, 2024
1 parent 68a8a93 commit 6898b40
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 2 deletions.
11 changes: 10 additions & 1 deletion Makefile.Downstream.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,16 @@ OPERATOR_SDK_VERSION ?= 1.34.1

NAME_PREFIX = ocscsi-

EXTRA_SERVICE_ACCOUNTS := '$(NAME_PREFIX)cephfs-ctrlplugin-sa,$(NAME_PREFIX)cephfs-nodeplugin-sa,$(NAME_PREFIX)rbd-ctrlplugin-sa,$(NAME_PREFIX)rbd-nodeplugin-sa'
SERVICE_ACCOUNTS := \
$(NAME_PREFIX)cephfs-ctrlplugin-sa, \
$(NAME_PREFIX)cephfs-nodeplugin-sa, \
$(NAME_PREFIX)nfs-ctrlplugin-sa, \
$(NAME_PREFIX)nfs-nodeplugin-sa, \
$(NAME_PREFIX)rbd-ctrlplugin-sa, \
$(NAME_PREFIX)rbd-nodeplugin-sa

# Remove spaces using tr
EXTRA_SERVICE_ACCOUNTS := $(shell echo $(SERVICE_ACCOUNTS) | tr -d ' ')

.PHONY: bundle
bundle: kustomize operator-sdk manifests
Expand Down
139 changes: 138 additions & 1 deletion bundle/manifests/cephcsi-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
annotations:
alm-examples: '[]'
capabilities: Basic Install
createdAt: "2024-08-13T11:57:45Z"
createdAt: "2024-08-14T06:13:44Z"
olm.skipRange: ""
operators.operatorframework.io/builder: operator-sdk-v1.34.1
operators.operatorframework.io/operator-type: non-standalone
Expand Down Expand Up @@ -341,6 +341,143 @@ spec:
verbs:
- create
serviceAccountName: ocscsi-controller-manager
- rules:
- apiGroups:
- ""
resources:
- persistentvolumes
verbs:
- get
- list
- watch
- create
- update
- delete
- patch
- apiGroups:
- ""
resources:
- persistentvolumeclaims
verbs:
- get
- list
- watch
- patch
- update
- apiGroups:
- storage.k8s.io
resources:
- storageclasses
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- events
verbs:
- get
- list
- watch
- create
- update
- patch
- apiGroups:
- storage.k8s.io
resources:
- csinodes
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- list
- watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotclasses
verbs:
- get
- list
- watch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotcontents
verbs:
- get
- list
- watch
- update
- patch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshotcontents/status
verbs:
- update
- patch
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshots
verbs:
- get
- list
- apiGroups:
- ""
resources:
- persistentvolumeclaims/status
verbs:
- patch
- apiGroups:
- storage.k8s.io
resources:
- volumeattachments
verbs:
- get
- list
- watch
- patch
- apiGroups:
- storage.k8s.io
resources:
- volumeattachments/status
verbs:
- patch
serviceAccountName: ocscsi-nfs-ctrlplugin-sa
- rules:
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
serviceAccountName: ocscsi-nfs-nodeplugin-sa
- rules:
- apiGroups:
- ""
Expand Down

0 comments on commit 6898b40

Please sign in to comment.