1 ################################################################################
\r
2 # Copyright (c) 2021 HCL Technologies Limited. #
\r
4 # Licensed under the Apache License, Version 2.0 (the "License"); #
\r
5 # you may not use this file except in compliance with the License. #
\r
6 # You may obtain a copy of the License at #
\r
8 # http://www.apache.org/licenses/LICENSE-2.0 #
\r
10 # Unless required by applicable law or agreed to in writing, software #
\r
11 # distributed under the License is distributed on an "AS IS" BASIS, #
\r
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
\r
13 # See the License for the specific language governing permissions and #
\r
14 # limitations under the License. #
\r
15 ################################################################################
\r
17 {{- define "common.name.influxdb" -}}
\r
18 {{- printf "influxdb" -}}
\r
21 {{- define "common.fullname.influxdb" -}}
\r
22 {{- $name := ( include "common.name.influxdb" . ) -}}
\r
23 {{- $namespace := ( include "common.namespace.platform" . ) -}}
\r
24 {{- printf "%s-%s" $namespace $name | trunc 63 | trimSuffix "-" -}}
\r
28 {{- define "common.deploymentname.influxdb" -}}
\r
29 {{- $name := ( include "common.fullname.influxdb" . ) -}}
\r
30 {{- printf "deployment-%s" $name | trunc 63 | trimSuffix "-" -}}
\r
33 {{- define "common.configmapname.influxdb" -}}
\r
34 {{- $name := ( include "common.fullname.influxdb" . ) -}}
\r
35 {{- printf "configmap-%s" $name | trunc 63 | trimSuffix "-" -}}
\r
38 {{- define "common.containername.influxdb" -}}
\r
39 {{- $name := ( include "common.fullname.influxdb" . ) -}}
\r
40 {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}}
\r
44 {{- define "common.pvname.influxdb" -}}
\r
45 {{- $name := ( include "common.fullname.influxdb" . ) -}}
\r
46 {{- printf "pv-%s" $name | trunc 63 | trimSuffix "-" -}}
\r
49 {{- define "common.pvcname.influxdb" -}}
\r
50 {{- $name := ( include "common.fullname.influxdb" . ) -}}
\r
51 {{- printf "pvc-%s" $name | trunc 63 | trimSuffix "-" -}}
\r
55 {{- define "common.servicename.influxdb.http" -}}
\r
56 {{- $name := ( include "common.fullname.influxdb" . ) -}}
\r
57 {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}
\r
61 {{- define "common.serviceport.influxdb.http" -}}8086{{- end -}}
\r
62 {{- define "common.serviceport.influxdb.meta.bind_address" -}}8091{{- end -}}
\r
63 {{- define "common.serviceport.influxdb.http.bind_address" -}}8086{{- end -}}
\r
64 {{- define "common.serviceport.influxdb.rpc.bind_address" -}}8088{{- end -}}
\r
65 {{- define "common.serviceport.influxdb.graphite.bind_address" -}}2003{{- end -}}
\r
66 {{- define "common.serviceport.influxdb.udp.bind_address" -}}8089{{- end -}}
\r
67 {{- define "common.serviceport.influxdb.opentsdb.bind_address" -}}4242{{- end -}}
\r
68 {{- define "common.serviceport.influxdb.collectd.bind_address" -}}25826{{- end -}}
\r
71 {{- define "common.serviceaccountname.influxdb" -}}
\r
72 {{- $name := ( include "common.fullname.influxdb" . ) -}}
\r
73 {{- printf "svcacct-%s" $name | trunc 63 | trimSuffix "-" -}}
\r
77 {{- define "common.ingressname.influxdb" -}}
\r
78 {{- $name := ( include "common.fullname.influxdb" . ) -}}
\r
79 {{- printf "ingress-%s" $name | trunc 63 | trimSuffix "-" -}}
\r