use helm release variable for service account name and namespace

Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2021-05-26 09:55:04 +00:00
parent 999711f1cf
commit 91ebc2cd01
3 changed files with 6 additions and 6 deletions

View File

@@ -15,12 +15,12 @@ metadata:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kubesphere
name: {{ include "ks-core.serviceAccountName" . }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: kubesphere
name: {{ include "ks-core.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}