X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-platform%2F50-RIC-Platform%2Fhelm%2Fappmgr%2Ftemplates%2Fserviceaccount.yaml;h=96da29abb20efb1c125986c0bdffeaf1baa3b6e3;hb=refs%2Fchanges%2F34%2F1234%2F9;hp=1806889205d207754b62d8e4cdc1c9292d765f90;hpb=25428c74ecffd82152b5642cca81c19508d3218c;p=it%2Fdep.git diff --git a/ric-platform/50-RIC-Platform/helm/appmgr/templates/serviceaccount.yaml b/ric-platform/50-RIC-Platform/helm/appmgr/templates/serviceaccount.yaml index 18068892..96da29ab 100644 --- a/ric-platform/50-RIC-Platform/helm/appmgr/templates/serviceaccount.yaml +++ b/ric-platform/50-RIC-Platform/helm/appmgr/templates/serviceaccount.yaml @@ -15,9 +15,11 @@ metadata: namespace: {{ include "common.tillerDeployNameSpace" $ctx }} rules: - apiGroups: [""] - resources: ["pods", "pods/portforward"] - verbs: ["get", "list", "create"] - + resources: ["pods/portforward"] + verbs: ["create"] +- apiGroups: [""] + resources: ["pods", "configmaps", "deployments", "services"] + verbs: ["get", "list", "create", "delete"] {{- if or (eq (include "common.tillerTLSVerify" $ctx) "true" ) (eq (include "common.tillerTLSAuthenticate" $ctx) "true") }} - apiGroups: [""] resources: ["secrets"] @@ -39,3 +41,26 @@ subjects: name: {{ include "common.serviceaccountname.appmgr" . }} namespace: {{ include "common.namespace.platform" . }} --- +apiVersion: rbac.authorization.k8s.io/v1beta1 +kind: Role +metadata: + name: {{ include "common.serviceaccountname.appmgr" . }}-{{ include "common.tillerNameSpace" $ctx }}-getappconfig + namespace: {{ include "common.tillerNameSpace" $ctx }} +rules: +- apiGroups: [""] + resources: ["configmaps", "endpoints"] + verbs: ["get"] +--- +apiVersion: rbac.authorization.k8s.io/v1beta1 +kind: RoleBinding +metadata: + name: {{ include "common.serviceaccountname.appmgr" . }}-{{ include "common.namespace.xapp" . }}-getappconfig + namespace: {{ include "common.tillerNameSpace" $ctx }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ include "common.serviceaccountname.appmgr" . }}-{{ include "common.tillerNameSpace" $ctx }}-getappconfig +subjects: + - kind: ServiceAccount + name: {{ include "common.serviceaccountname.appmgr" . }} + namespace: {{ include "common.namespace.platform" . }}