You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by to...@apache.org on 2021/05/16 08:52:04 UTC

[apisix-ingress-controller] branch master updated: fix: add status subresource permission in clusterRole (#452)

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

tokers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new 4a55307  fix: add status subresource permission in clusterRole (#452)
4a55307 is described below

commit 4a55307b6a34ba1145e131f85b5f05f909e8d244
Author: kv <gx...@163.com>
AuthorDate: Sun May 16 16:51:58 2021 +0800

    fix: add status subresource permission in clusterRole (#452)
---
 samples/deploy/rbac/apisix_view_clusterrole.yaml | 12 ++++++------
 test/e2e/scaffold/ingress.go                     | 12 ++++++------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/samples/deploy/rbac/apisix_view_clusterrole.yaml b/samples/deploy/rbac/apisix_view_clusterrole.yaml
index a5f75be..afdf698 100644
--- a/samples/deploy/rbac/apisix_view_clusterrole.yaml
+++ b/samples/deploy/rbac/apisix_view_clusterrole.yaml
@@ -119,11 +119,10 @@ rules:
   - networking.k8s.io
   resources:
   - ingresses
+  - ingresses/status
   - networkpolicies
   verbs:
-  - get
-  - list
-  - watch
+  - '*'
 - apiGroups:
   - metrics.k8s.io
   resources:
@@ -136,13 +135,14 @@ rules:
   - apisix.apache.org
   resources:
   - apisixroutes
+  - apisixroutes/status
   - apisixupstreams
+  - apisixupstreams/status
   - apisixtlses
+  - apisixtlses/status
   - apisixclusterconfigs
   verbs:
-  - get
-  - list
-  - watch
+  - '*'
 - apiGroups:
   - coordination.k8s.io
   resources:
diff --git a/test/e2e/scaffold/ingress.go b/test/e2e/scaffold/ingress.go
index 3fdf36d..da1d36e 100644
--- a/test/e2e/scaffold/ingress.go
+++ b/test/e2e/scaffold/ingress.go
@@ -135,11 +135,10 @@ rules:
       - networking.k8s.io
     resources:
       - ingresses
+      - ingresses/status
       - networkpolicies
     verbs:
-      - get
-      - list
-      - watch
+      - '*'
   - apiGroups:
       - metrics.k8s.io
     resources:
@@ -152,14 +151,15 @@ rules:
       - apisix.apache.org
     resources:
       - apisixroutes
+      - apisixroutes/status
       - apisixupstreams
+      - apisixupstreams/status
       - apisixservices
       - apisixtlses
+      - apisixtlses/status
       - apisixclusterconfigs
     verbs:
-      - get
-      - list
-      - watch
+      - '*'
   - apiGroups:
     - coordination.k8s.io
     resources: