rbac: remove unwanted RBAC for endpoint leader election
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
@@ -68,7 +68,7 @@ roleRef:
|
|||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
|
||||||
---
|
---
|
||||||
# Provisioner must be able to work with endpoints and leases in current namespace
|
# Provisioner 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
|
||||||
@@ -77,9 +77,6 @@ metadata:
|
|||||||
namespace: default
|
namespace: default
|
||||||
name: external-provisioner-cfg
|
name: external-provisioner-cfg
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["endpoints"]
|
|
||||||
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
|
||||||
- apiGroups: ["coordination.k8s.io"]
|
- apiGroups: ["coordination.k8s.io"]
|
||||||
resources: ["leases"]
|
resources: ["leases"]
|
||||||
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
verbs: ["get", "watch", "list", "delete", "update", "create"]
|
||||||
|
Reference in New Issue
Block a user