Explorar el Código

Merge pull request #10443 from mgleung/calico-rbac

Add permissions for the Calico CNI plugin to access namespaces
Scott Dodson hace 6 años
padre
commit
ffdce7c605
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      roles/calico/templates/calicov3.yml.j2

+ 2 - 0
roles/calico/templates/calicov3.yml.j2

@@ -14,6 +14,7 @@ rules:
       - namespaces
       - namespaces
       - networkpolicies
       - networkpolicies
       - nodes
       - nodes
+      - serviceaccounts
     verbs:
     verbs:
       - watch
       - watch
       - list
       - list
@@ -49,6 +50,7 @@ rules:
   - apiGroups: [""]
   - apiGroups: [""]
     resources:
     resources:
       - pods
       - pods
+      - namespaces
       - nodes
       - nodes
     verbs:
     verbs:
       - get
       - get