Commit 11042e01 authored by Andrew Sy Kim's avatar Andrew Sy Kim

external-resizer in e2e tests should have access to leases

parent f71cde5c
...@@ -59,7 +59,7 @@ roleRef: ...@@ -59,7 +59,7 @@ roleRef:
apiGroup: rbac.authorization.k8s.io 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 # if (and only if) leadership election is enabled
kind: Role kind: Role
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
...@@ -68,8 +68,8 @@ metadata: ...@@ -68,8 +68,8 @@ metadata:
namespace: default namespace: default
name: external-resizer-cfg name: external-resizer-cfg
rules: rules:
- apiGroups: [""] - apiGroups: ["coordination.k8s.io"]
resources: ["endpoints"] resources: ["leases"]
verbs: ["get", "watch", "list", "delete", "update", "create"] verbs: ["get", "watch", "list", "delete", "update", "create"]
--- ---
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment