1 ################################################################################
2 # Copyright (c) 2019-2020 AT&T Intellectual Property. #
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 #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
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. #
15 ################################################################################
17 {{- $tillerKey := .Values.appmgr.tillerkey | default "ricxapp" }}
19 {{- $ctx := dict "ctx" $topCtx "key" $tillerKey }}
20 {{- $certName := include "common.tillerHelmClientTLSSecret" $ctx }}
25 name: {{ include "common.serviceaccountname.appmgr" . }}
26 namespace: {{ include "common.namespace.platform" . }}
28 apiVersion: rbac.authorization.k8s.io/v1beta1
31 name: {{ include "common.serviceaccountname.appmgr" . }}-{{ include "common.tillerNameSpace" $ctx }}-access
32 namespace: {{ include "common.tillerDeployNameSpace" $ctx }}
35 resources: ["pods/portforward"]
38 resources: ["pods", "configmaps", "deployments", "services"]
39 verbs: ["get", "list", "create", "delete"]
40 {{- if or (eq (include "common.tillerTLSVerify" $ctx) "true" ) (eq (include "common.tillerTLSAuthenticate" $ctx) "true") }}
42 resources: ["secrets"]
43 resourceNames: [ {{ include "common.tillerHelmClientTLSSecret" $ctx | quote }} ]
47 apiVersion: rbac.authorization.k8s.io/v1beta1
50 name: {{ include "common.serviceaccountname.appmgr" . }}-{{ include "common.tillerNameSpace" $ctx }}-access
51 namespace: {{ include "common.tillerDeployNameSpace" $ctx }}
53 apiGroup: rbac.authorization.k8s.io
55 name: {{ include "common.serviceaccountname.appmgr" . }}-{{ include "common.tillerNameSpace" $ctx }}-access
57 - kind: ServiceAccount
58 name: {{ include "common.serviceaccountname.appmgr" . }}
59 namespace: {{ include "common.namespace.platform" . }}
61 apiVersion: rbac.authorization.k8s.io/v1beta1
64 name: {{ include "common.serviceaccountname.appmgr" . }}-{{ include "common.tillerNameSpace" $ctx }}-getappconfig
65 namespace: {{ include "common.tillerNameSpace" $ctx }}
68 resources: ["configmaps", "endpoints", "services"]
69 verbs: ["get", "list", "create", "update", "delete"]
71 apiVersion: rbac.authorization.k8s.io/v1beta1
74 name: {{ include "common.serviceaccountname.appmgr" . }}-{{ include "common.namespace.xapp" . }}-getappconfig
75 namespace: {{ include "common.tillerNameSpace" $ctx }}
77 apiGroup: rbac.authorization.k8s.io
79 name: {{ include "common.serviceaccountname.appmgr" . }}-{{ include "common.tillerNameSpace" $ctx }}-getappconfig
81 - kind: ServiceAccount
82 name: {{ include "common.serviceaccountname.appmgr" . }}
83 namespace: {{ include "common.namespace.platform" . }}