From: Zhe Huang Date: Thu, 14 May 2020 23:49:51 +0000 (-0400) Subject: Add role to allow appmgr to access xApp k8s service X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=2d35080086800bc1489a82a1bc2938df82d5585a;p=ric-plt%2Fric-dep.git Add role to allow appmgr to access xApp k8s service Signed-off-by: Zhe Huang Change-Id: I945d1968f275dcbfb97f8f9394297a6a6343f721 --- diff --git a/helm/appmgr/templates/serviceaccount.yaml b/helm/appmgr/templates/serviceaccount.yaml index c873e30..407fb1f 100644 --- a/helm/appmgr/templates/serviceaccount.yaml +++ b/helm/appmgr/templates/serviceaccount.yaml @@ -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" . }}