mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-20 21:30:35 +00:00
Add roles for endpoints and endpointslices
* Add clusterrole to give lighthouse serviceaccount access to endpoints and endpointslices * Add role to give broker serviceaccont access to endpoint slices Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com>
This commit is contained in:
committed by
Thomas Pantelis
parent
fefd6b21ed
commit
8df47c6f85
@@ -15,6 +15,9 @@ rules:
|
||||
- apiGroups: ["lighthouse.submariner.io"]
|
||||
resources: ["*"]
|
||||
verbs: ["create", "get", "list", "watch", "patch", "update", "delete"]
|
||||
- apiGroups: ["discovery.k8s.io"]
|
||||
resources: ["endpointslices"]
|
||||
verbs: ["create", "get", "list", "watch","patch", "update", "delete"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
|
||||
@@ -118,8 +118,11 @@ metadata:
|
||||
name: {{ template "submariner.fullname" . }}:lighthouse
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["services", "namespaces", "configmaps"]
|
||||
resources: ["services", "namespaces", "configmaps", "endpoints"]
|
||||
verbs: ["get", "list", "watch", "update"]
|
||||
- apiGroups: ["discovery.k8s.io"]
|
||||
resources: ["endpointslices"]
|
||||
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
||||
- apiGroups: ["lighthouse.submariner.io"]
|
||||
resources: ["*"]
|
||||
verbs: ["create", "get", "list", "watch", "update", "delete"]
|
||||
|
||||
Reference in New Issue
Block a user