1 ################################################################################
2 # Copyright (c) 2019 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 {{- define "common.name.e2term" -}}
18 {{- printf "e2term" -}}
21 {{- define "common.fullname.e2term" -}}
22 {{- $name := ( include "common.name.e2term" . ) -}}
23 {{- $namespace := ( include "common.namespace.platform" . ) -}}
24 {{- printf "%s-%s" $namespace $name | trunc 63 | trimSuffix "-" -}}
28 {{- define "common.deploymentname.e2term" -}}
29 {{- $name := ( include "common.fullname.e2term" . ) -}}
30 {{- printf "deployment-%s" $name | trunc 63 | trimSuffix "-" -}}
33 {{- define "common.configmapname.e2term" -}}
34 {{- $name := ( include "common.fullname.e2term" . ) -}}
35 {{- printf "configmap-%s" $name | trunc 63 | trimSuffix "-" -}}
38 {{- define "common.containername.e2term" -}}
39 {{- $name := ( include "common.fullname.e2term" . ) -}}
40 {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}}
43 {{- define "common.pvname.e2term" -}}
44 {{- $name := ( include "common.fullname.e2term" . ) -}}
45 {{- printf "pv-%s" $name | trunc 63 | trimSuffix "-" -}}
48 {{- define "common.pvcname.e2term" -}}
49 {{- $name := ( include "common.fullname.e2term" . ) -}}
50 {{- printf "pvc-%s" $name | trunc 63 | trimSuffix "-" -}}
53 {{- define "common.servicename.e2term.rmr" -}}
54 {{- $name := ( include "common.fullname.e2term" . ) -}}
55 {{- printf "service-%s-rmr" $name | trunc 63 | trimSuffix "-" -}}
57 {{- define "common.servicename.e2term.sctp" -}}
58 {{- $name := ( include "common.fullname.e2term" . ) -}}
59 {{- printf "service-%s-sctp" $name | trunc 63 | trimSuffix "-" -}}
62 {{- define "common.servicename.e2term.http" -}}
63 {{- $name := ( include "common.fullname.e2term" . ) -}}
64 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
67 {{- define "common.servicename.e2term.prometheus" -}}
68 {{- $name := ( include "common.fullname.e2term" . ) -}}
69 {{- printf "service-%s-prometheus" $name | trunc 63 | trimSuffix "-" -}}
73 {{- define "common.serviceport.e2term.rmr.data" -}}38000{{- end -}}
74 {{- define "common.serviceport.e2term.rmr.route" -}}4561{{- end -}}
75 {{- define "common.serviceport.e2term.http" -}}8080{{- end -}}
76 {{- define "common.serviceport.e2term.sctp" -}}36422{{- end -}}
77 {{- define "common.serviceport.e2term.prometheus" -}}8088{{- end -}}
80 {{- define "common.serviceaccountname.e2term" -}}
81 {{- $name := ( include "common.fullname.e2term" . ) -}}
82 {{- printf "svcacct-%s" $name | trunc 63 | trimSuffix "-" -}}
86 {{- define "common.ingressname.e2term" -}}
87 {{- $name := ( include "common.fullname.e2term" . ) -}}
88 {{- printf "ingress-%s" $name | trunc 63 | trimSuffix "-" -}}