This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch cluster-role
in repository https://gitbox.apache.org/repos/asf/skywalking-kubernetes.git

commit e06aab1c623b5a682c3d2db04d25ad068e32aa50
Author: kezhenxu94 <kezhenx...@163.com>
AuthorDate: Sat Oct 24 15:02:23 2020 +0800

    Add endpoints resources to cluster role
    
    According to https://github.com/apache/skywalking/issues/5706 , we need 
access role to the Endpoints resources
---
 chart/skywalking/templates/oap-clusterrole.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chart/skywalking/templates/oap-clusterrole.yaml 
b/chart/skywalking/templates/oap-clusterrole.yaml
index 24d90c9..bb57848 100644
--- a/chart/skywalking/templates/oap-clusterrole.yaml
+++ b/chart/skywalking/templates/oap-clusterrole.yaml
@@ -25,9 +25,9 @@ metadata:
     heritage: "{{ .Release.Service }}"
 rules:
 - apiGroups: [""]
-  resources: ["pods"]
+  resources: ["pods", "endpoints"]
   verbs: ["get", "watch", "list"]
 - apiGroups: ["extensions"]
   resources: ["deployments", "replicasets"]
   verbs: ["get", "watch", "list"]
-{{- end }}
\ No newline at end of file
+{{- end }}

Reply via email to