Skip to content

Commit

Permalink
Merge pull request #163 from Madhu-1/cephfs-fix
Browse files Browse the repository at this point in the history
Add missing RBAC and update images to latest release
  • Loading branch information
nb-ohad authored Nov 5, 2024
2 parents fb4af2c + 1af4e3e commit 2e1f364
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 18 deletions.
24 changes: 24 additions & 0 deletions config/csi-rbac/cephfs_ctrlplugin_cluster_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
- apiGroups: ["storage.k8s.io"]
resources: ["csinodes"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "create", "delete", "patch", "update"]
Expand Down Expand Up @@ -39,3 +48,18 @@ rules:
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents/status"]
verbs: ["update", "patch"]
- apiGroups: ["groupsnapshot.storage.k8s.io"]
resources: ["volumegroupsnapshotclasses"]
verbs: ["get", "list", "watch"]
- apiGroups: ["groupsnapshot.storage.k8s.io"]
resources: ["volumegroupsnapshotcontents"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: ["groupsnapshot.storage.k8s.io"]
resources: ["volumegroupsnapshotcontents/status"]
verbs: ["update", "patch"]
- apiGroups: [""]
resources: ["serviceaccounts"]
verbs: ["get"]
- apiGroups: [""]
resources: ["serviceaccounts/token"]
verbs: ["create"]
13 changes: 8 additions & 5 deletions config/csi-rbac/rbd_ctrlplugin_cluster_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ rules:
- apiGroups: [""]
resources: ["serviceaccounts/token"]
verbs: ["create"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", watch"]
- apiGroups: ["storage.k8s.io"]
resources: ["csinodes"]
- apiGroups: ["groupsnapshot.storage.k8s.io"]
resources: ["volumegroupsnapshotclasses"]
verbs: ["get", "list", "watch"]
- apiGroups: ["groupsnapshot.storage.k8s.io"]
resources: ["volumegroupsnapshotcontents"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: ["groupsnapshot.storage.k8s.io"]
resources: ["volumegroupsnapshotcontents/status"]
verbs: ["update", "patch"]
78 changes: 73 additions & 5 deletions deploy/all-in-one/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14135,6 +14135,28 @@ rules:
verbs:
- get
- list
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- list
- watch
- apiGroups:
- storage.k8s.io
resources:
- csinodes
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -14228,6 +14250,43 @@ rules:
verbs:
- update
- patch
- apiGroups:
- groupsnapshot.storage.k8s.io
resources:
- volumegroupsnapshotclasses
verbs:
- get
- list
- watch
- apiGroups:
- groupsnapshot.storage.k8s.io
resources:
- volumegroupsnapshotcontents
verbs:
- get
- list
- watch
- update
- patch
- apiGroups:
- groupsnapshot.storage.k8s.io
resources:
- volumegroupsnapshotcontents/status
verbs:
- update
- patch
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- get
- apiGroups:
- ""
resources:
- serviceaccounts/token
verbs:
- create
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down Expand Up @@ -14947,21 +15006,30 @@ rules:
verbs:
- create
- apiGroups:
- ""
- groupsnapshot.storage.k8s.io
resources:
- nodes
- volumegroupsnapshotclasses
verbs:
- get
- list
- watch"
- watch
- apiGroups:
- storage.k8s.io
- groupsnapshot.storage.k8s.io
resources:
- csinodes
- volumegroupsnapshotcontents
verbs:
- get
- list
- watch
- update
- patch
- apiGroups:
- groupsnapshot.storage.k8s.io
resources:
- volumegroupsnapshotcontents/status
verbs:
- update
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down
78 changes: 73 additions & 5 deletions deploy/multifile/csi-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,28 @@ rules:
verbs:
- get
- list
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- list
- watch
- apiGroups:
- storage.k8s.io
resources:
- csinodes
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -200,6 +222,43 @@ rules:
verbs:
- update
- patch
- apiGroups:
- groupsnapshot.storage.k8s.io
resources:
- volumegroupsnapshotclasses
verbs:
- get
- list
- watch
- apiGroups:
- groupsnapshot.storage.k8s.io
resources:
- volumegroupsnapshotcontents
verbs:
- get
- list
- watch
- update
- patch
- apiGroups:
- groupsnapshot.storage.k8s.io
resources:
- volumegroupsnapshotcontents/status
verbs:
- update
- patch
- apiGroups:
- ""
resources:
- serviceaccounts
verbs:
- get
- apiGroups:
- ""
resources:
- serviceaccounts/token
verbs:
- create
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down Expand Up @@ -523,21 +582,30 @@ rules:
verbs:
- create
- apiGroups:
- ""
- groupsnapshot.storage.k8s.io
resources:
- nodes
- volumegroupsnapshotclasses
verbs:
- get
- list
- watch"
- watch
- apiGroups:
- storage.k8s.io
- groupsnapshot.storage.k8s.io
resources:
- csinodes
- volumegroupsnapshotcontents
verbs:
- get
- list
- watch
- update
- patch
- apiGroups:
- groupsnapshot.storage.k8s.io
resources:
- volumegroupsnapshotcontents/status
verbs:
- update
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down
6 changes: 3 additions & 3 deletions internal/controller/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ var imageDefaults = map[string]string{
"attacher": "registry.k8s.io/sig-storage/csi-attacher:v4.6.1",
"resizer": "registry.k8s.io/sig-storage/csi-resizer:v1.11.1",
"snapshotter": "registry.k8s.io/sig-storage/csi-snapshotter:v8.0.1",
"registrar": "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.10.1",
"plugin": "quay.io/cephcsi/cephcsi:v3.11.0",
"addons": "quay.io/csiaddons/k8s-sidecar:v0.8.0",
"registrar": "registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.11.1",
"plugin": "quay.io/cephcsi/cephcsi:v3.12.2",
"addons": "quay.io/csiaddons/k8s-sidecar:v0.10.0",
}

const (
Expand Down

0 comments on commit 2e1f364

Please sign in to comment.