Add role to allow appmgr to access xApp k8s service 05/3705/1
authorZhe Huang <zhehuang@research.att.com>
Thu, 14 May 2020 23:49:51 +0000 (19:49 -0400)
committerZhe Huang <zhehuang@research.att.com>
Thu, 14 May 2020 23:49:51 +0000 (19:49 -0400)
Signed-off-by: Zhe Huang <zhehuang@research.att.com>
Change-Id: I945d1968f275dcbfb97f8f9394297a6a6343f721

helm/appmgr/templates/serviceaccount.yaml

index c873e30..407fb1f 100644 (file)
@@ -65,7 +65,7 @@ metadata:
   namespace: {{ include "common.tillerNameSpace" $ctx }}
 rules:
 - apiGroups: [""]
-  resources: ["configmaps", "endpoints"]
+  resources: ["configmaps", "endpoints", "services"]
   verbs: ["get", "list", "create", "update", "delete"]
 ---
 apiVersion: rbac.authorization.k8s.io/v1beta1
@@ -80,4 +80,4 @@ roleRef:
 subjects:
   - kind: ServiceAccount
     name: {{ include "common.serviceaccountname.appmgr" . }}
-    namespace: {{ include "common.namespace.platform" . }}
\ No newline at end of file
+    namespace: {{ include "common.namespace.platform" . }}