blob: 50cbebf9846df7dccaa5a7834fec3977bf0626f7 [file] [log] [blame]
Jakub Latusekbe896842020-10-21 13:36:29 +02001{{/*
Huabing Zhao8f7cc812018-08-08 06:27:37 +00002# Copyright © 2017 Amdocs, Bell Canada, ZTE
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
Jakub Latusekbe896842020-10-21 13:36:29 +020015*/}}
Huabing Zhao8f7cc812018-08-08 06:27:37 +000016apiVersion: v1
17kind: ServiceAccount
18metadata:
Sylvain Desbureaux55af6482020-11-02 18:21:11 +010019 name: msb
20 namespace: {{ include "common.namespace" . }}
Huabing Zhao8f7cc812018-08-08 06:27:37 +000021---
Jakub Latusek3aa97362020-12-09 10:57:52 +010022apiVersion: rbac.authorization.k8s.io/v1
Huabing Zhao8f7cc812018-08-08 06:27:37 +000023kind: ClusterRoleBinding
24metadata:
25 name: {{ include "common.namespace" . }}-msb-binding
26 namespace: {{ include "common.namespace" . }}
27 labels:
28 app: {{ include "common.name" . }}
29 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010030 release: {{ include "common.release" . }}
Huabing Zhao8f7cc812018-08-08 06:27:37 +000031 heritage: {{ .Release.Service }}
32roleRef:
33 apiGroup: rbac.authorization.k8s.io
34 kind: ClusterRole
35 name: cluster-admin
36subjects:
37 - kind: ServiceAccount
38 name: msb
39 namespace: {{ include "common.namespace" . }}