2 # Copyright © 2020 Bitnami, AT&T, Amdocs, Bell Canada, highstreet technologies
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.
16 {{/* vim: set filetype=mustache: */}}
18 Expand the name of the chart.
22 {{ define "elasticsearch.clustername"}}
23 {{- printf "%s-%s" (include "common.name" .) "cluster" -}}
27 This define should be used instead of "common.fullname" to allow
28 special handling of kibanaEnabled=true
29 Create a default fully qualified coordinating name.
30 We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
32 {{- define "elasticsearch.coordinating.fullname" -}}
33 {{- if .Values.global.kibanaEnabled -}}
34 {{- printf "%s-%s" .Release.Name .Values.global.coordinating.name | trunc 63 | trimSuffix "-" -}}
36 {{- printf "%s-%s" (include "common.fullname" .) .Values.global.coordinating.name | trunc 63 | trimSuffix "-" -}}
41 Create the name of the master service account to use
43 {{- define "elasticsearch.master.serviceAccountName" -}}
44 {{- if .Values.master.serviceAccount.create -}}
45 {{ default (include "common.fullname" (dict "suffix" "master" "dot" .)) .Values.master.serviceAccount.name }}
47 {{ default "default" .Values.master.serviceAccount.name }}
52 Create the name of the coordinating-only service account to use
54 {{- define "elasticsearch.serviceAccountName" -}}
55 {{- if .Values.serviceAccount.create -}}
56 {{ default (include "common.fullname" . ) .Values.serviceAccount.name }}
58 {{ default "default" .Values.serviceAccount.name }}
63 Create the name of the data service account to use
65 {{- define "elasticsearch.data.serviceAccountName" -}}
66 {{- if .Values.serviceAccount.create -}}
67 {{ default (include "common.fullname" (dict "suffix" "data" "dot" .)) .Values.data.serviceAccount.name }}
69 {{ default "default" .Values.serviceAccount.name }}