diff --git a/test/e2e/testing-manifests/storage-csi/external-attacher/rbac.yaml b/test/e2e/testing-manifests/storage-csi/external-attacher/rbac.yaml index 18f1eff454f..f5d97a11734 100644 --- a/test/e2e/testing-manifests/storage-csi/external-attacher/rbac.yaml +++ b/test/e2e/testing-manifests/storage-csi/external-attacher/rbac.yaml @@ -24,16 +24,23 @@ metadata: rules: - apiGroups: [""] resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "update"] + verbs: ["get", "list", "watch", "update", "patch"] - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list", "watch"] - - apiGroups: ["csi.storage.k8s.io"] - resources: ["csinodeinfos"] + - apiGroups: ["storage.k8s.io"] + resources: ["csinodes"] verbs: ["get", "list", "watch"] - apiGroups: ["storage.k8s.io"] resources: ["volumeattachments"] - verbs: ["get", "list", "watch", "update"] + verbs: ["get", "list", "watch", "update", "patch"] +#Secret permission is optional. +#Enable it if you need value from secret. +#For example, you have key `csi.storage.k8s.io/controller-publish-secret-name` in StorageClass.parameters +#see https://kubernetes-csi.github.io/docs/secrets-and-credentials.html +# - apiGroups: [""] +# resources: ["secrets"] +# verbs: ["get", "list"] --- kind: ClusterRoleBinding @@ -51,7 +58,7 @@ roleRef: apiGroup: rbac.authorization.k8s.io --- -# Attacher must be able to work with config map in current namespace +# Attacher must be able to work with configmaps or leases in the current namespace # if (and only if) leadership election is enabled kind: Role apiVersion: rbac.authorization.k8s.io/v1 @@ -60,8 +67,8 @@ metadata: namespace: default name: external-attacher-cfg rules: -- apiGroups: [""] - resources: ["configmaps"] +- apiGroups: ["coordination.k8s.io"] + resources: ["leases"] verbs: ["get", "watch", "list", "delete", "update", "create"] --- diff --git a/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-attacher.yaml b/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-attacher.yaml index d7c36d2ec6c..823763a91c9 100644 --- a/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-attacher.yaml +++ b/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-attacher.yaml @@ -40,7 +40,7 @@ spec: serviceAccountName: csi-attacher containers: - name: csi-attacher - image: quay.io/k8scsi/csi-attacher:v1.2.0 + image: quay.io/k8scsi/csi-attacher:v2.0.0 args: - --v=5 - --csi-address=/csi/csi.sock diff --git a/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-plugin.yaml b/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-plugin.yaml index faf5c980e8f..5b9071cff46 100644 --- a/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-plugin.yaml +++ b/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-plugin.yaml @@ -36,7 +36,7 @@ spec: spec: containers: - name: node-driver-registrar - image: quay.io/k8scsi/csi-node-driver-registrar:v1.1.0 + image: quay.io/k8scsi/csi-node-driver-registrar:v1.2.0 lifecycle: preStop: exec: @@ -62,7 +62,7 @@ spec: name: csi-data-dir - name: hostpath - image: quay.io/k8scsi/hostpathplugin:v1.2.0-rc5 + image: quay.io/k8scsi/hostpathplugin:v1.2.0 args: - "--drivername=hostpath.csi.k8s.io" - "--v=5" diff --git a/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-provisioner.yaml b/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-provisioner.yaml index dd9b3e3b062..d7b73daac3f 100644 --- a/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-provisioner.yaml +++ b/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-provisioner.yaml @@ -40,8 +40,7 @@ spec: serviceAccountName: csi-provisioner containers: - name: csi-provisioner - # TODO: replace with official 1.4.0 release when ready - image: quay.io/k8scsi/csi-provisioner:v1.4.0-rc1 + image: quay.io/k8scsi/csi-provisioner:v1.4.0 args: - -v=5 - --csi-address=/csi/csi.sock diff --git a/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-resizer.yaml b/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-resizer.yaml index 8e7c30711f8..e8dd44a88ce 100644 --- a/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-resizer.yaml +++ b/test/e2e/testing-manifests/storage-csi/hostpath/hostpath/csi-hostpath-resizer.yaml @@ -30,7 +30,7 @@ spec: serviceAccountName: csi-resizer containers: - name: csi-resizer - image: quay.io/k8scsi/csi-resizer:v0.2.0 + image: quay.io/k8scsi/csi-resizer:v0.3.0 args: - "--v=5" - "--csi-address=$(ADDRESS)"