Skip to content

Commit 61b35ca

Browse files
committed
Update rbac rule for external-snapshotter e2e test
In the DeleteVolumeFinalizer feature in external-snapshotter, the external-snapshotter needs to update the PVC object to add a Finalizer if a snapshot is being created from the PVC and delete the Finalizer after the snapshot is created. For that reason, we need to add "update" rbac rule for the PVC object in external-snapshot e2e test manifest file. DeleteVolumeFinalizer PR is here. It couldn't pass e2e test until we fix the rbac rule in e2e. kubernetes-csi/external-snapshotter#47
1 parent dc071b8 commit 61b35ca

File tree

1 file changed

+2
-2
lines changed
  • test/e2e/testing-manifests/storage-csi/external-snapshotter

1 file changed

+2
-2
lines changed

test/e2e/testing-manifests/storage-csi/external-snapshotter/rbac.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ rules:
2525
verbs: ["get", "list", "watch"]
2626
- apiGroups: [""]
2727
resources: ["persistentvolumeclaims"]
28-
verbs: ["get", "list", "watch"]
28+
verbs: ["get", "list", "watch", "update"]
2929
- apiGroups: ["storage.k8s.io"]
3030
resources: ["storageclasses"]
3131
verbs: ["get", "list", "watch"]
@@ -62,4 +62,4 @@ roleRef:
6262
kind: ClusterRole
6363
# change the name also here if the ClusterRole gets renamed
6464
name: external-snapshotter-runner
65-
apiGroup: rbac.authorization.k8s.io
65+
apiGroup: rbac.authorization.k8s.io

0 commit comments

Comments
 (0)