diff --git a/config/csi-rbac/cephfs_ctrlplugin_role.yaml b/config/csi-rbac/cephfs_ctrlplugin_role.yaml index 79937014..cabfb628 100644 --- a/config/csi-rbac/cephfs_ctrlplugin_role.yaml +++ b/config/csi-rbac/cephfs_ctrlplugin_role.yaml @@ -15,3 +15,6 @@ rules: - apiGroups: ["apps"] resources: ["replicasets"] verbs: ["get"] + - apiGroups: ["apps"] + resources: ["deployments/finalizers", "daemonsets/finalizers"] + verbs: ["update"] diff --git a/config/csi-rbac/rbd_ctrlplugin_role.yaml b/config/csi-rbac/rbd_ctrlplugin_role.yaml index ab8b74e7..9be22152 100644 --- a/config/csi-rbac/rbd_ctrlplugin_role.yaml +++ b/config/csi-rbac/rbd_ctrlplugin_role.yaml @@ -15,3 +15,6 @@ rules: - apiGroups: ["apps"] resources: ["replicasets"] verbs: ["get"] + - apiGroups: ["apps"] + resources: ["deployments/finalizers", "daemonsets/finalizers"] + verbs: ["update"] diff --git a/config/csi-rbac/rbd_nodeplugin_role.yaml b/config/csi-rbac/rbd_nodeplugin_role.yaml index 436bfcd6..ae895ffc 100644 --- a/config/csi-rbac/rbd_nodeplugin_role.yaml +++ b/config/csi-rbac/rbd_nodeplugin_role.yaml @@ -12,3 +12,6 @@ rules: - apiGroups: ["apps"] resources: ["replicasets"] verbs: ["get"] + - apiGroups: ["apps"] + resources: ["deployments/finalizers", "daemonsets/finalizers"] + verbs: ["update"] diff --git a/deploy/all-in-one/install.yaml b/deploy/all-in-one/install.yaml index 56645ff4..0a82cfc2 100644 --- a/deploy/all-in-one/install.yaml +++ b/deploy/all-in-one/install.yaml @@ -14112,6 +14112,13 @@ rules: - replicasets verbs: - get +- apiGroups: + - apps + resources: + - deployments/finalizers + - daemonsets/finalizers + verbs: + - update --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role @@ -14191,6 +14198,13 @@ rules: - replicasets verbs: - get +- apiGroups: + - apps + resources: + - deployments/finalizers + - daemonsets/finalizers + verbs: + - update --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role @@ -14218,6 +14232,13 @@ rules: - replicasets verbs: - get +- apiGroups: + - apps + resources: + - deployments/finalizers + - daemonsets/finalizers + verbs: + - update --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/deploy/multifile/csi-rbac.yaml b/deploy/multifile/csi-rbac.yaml index 7a644ee6..935328f3 100644 --- a/deploy/multifile/csi-rbac.yaml +++ b/deploy/multifile/csi-rbac.yaml @@ -71,6 +71,13 @@ rules: - replicasets verbs: - get +- apiGroups: + - apps + resources: + - deployments/finalizers + - daemonsets/finalizers + verbs: + - update --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role @@ -109,6 +116,13 @@ rules: - replicasets verbs: - get +- apiGroups: + - apps + resources: + - deployments/finalizers + - daemonsets/finalizers + verbs: + - update --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role @@ -136,6 +150,13 @@ rules: - replicasets verbs: - get +- apiGroups: + - apps + resources: + - deployments/finalizers + - daemonsets/finalizers + verbs: + - update --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole