X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm-manager%2Fcharts%2Ftemplates%2Fserviceaccount.yaml;fp=helm-manager%2Fcharts%2Ftemplates%2Fserviceaccount.yaml;h=345d385a730108ffa70962884af1dc9124c26b44;hb=90f14b967777a7a78a1200e748377a64503bbfd9;hp=0000000000000000000000000000000000000000;hpb=0e96b9e7209c06f6e3ce090a737f0c504f5a0948;p=nonrtric.git diff --git a/helm-manager/charts/templates/serviceaccount.yaml b/helm-manager/charts/templates/serviceaccount.yaml new file mode 100644 index 00000000..345d385a --- /dev/null +++ b/helm-manager/charts/templates/serviceaccount.yaml @@ -0,0 +1,35 @@ +################################################################################ +# Copyright (c) 2021 Nordix Foundation. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ + +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ template "helmmanager.name" . }}-sa + namespace: {{ template "helmmanager.namespace" . }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ template "helmmanager.name" . }}-sa-clusterrolebinding + namespace: {{ template "helmmanager.namespace" . }} +subjects: +- kind: ServiceAccount + name: {{ template "helmmanager.name" . }}-sa + namespace: {{ template "helmmanager.namespace" . }} +roleRef: + kind: ClusterRole + name: cluster-admin + apiGroup: rbac.authorization.k8s.io \ No newline at end of file