From 11042e015e7dce10e6fc0228bf9da2fa47bf39c1 Mon Sep 17 00:00:00 2001 From: Andrew Sy Kim Date: Wed, 3 Apr 2019 12:16:42 -0400 Subject: [PATCH] external-resizer in e2e tests should have access to leases Signed-off-by: Andrew Sy Kim --- .../storage-csi/external-resizer/rbac.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/testing-manifests/storage-csi/external-resizer/rbac.yaml b/test/e2e/testing-manifests/storage-csi/external-resizer/rbac.yaml index 82b5640b5e..fa0600a1de 100644 --- a/test/e2e/testing-manifests/storage-csi/external-resizer/rbac.yaml +++ b/test/e2e/testing-manifests/storage-csi/external-resizer/rbac.yaml @@ -59,7 +59,7 @@ roleRef: apiGroup: rbac.authorization.k8s.io --- -# Resizer must be able to work with end point in current namespace +# Resizer must be able to work with leases in current namespace # if (and only if) leadership election is enabled kind: Role apiVersion: rbac.authorization.k8s.io/v1 @@ -68,8 +68,8 @@ metadata: namespace: default name: external-resizer-cfg rules: -- apiGroups: [""] - resources: ["endpoints"] +- apiGroups: ["coordination.k8s.io"] + resources: ["leases"] verbs: ["get", "watch", "list", "delete", "update", "create"] ---