Issue-ID: RICAPP-169 - Inclusion of InfluxDB helm chart for KPIMON, AD, TS, QP xApps
[it/dep.git] / ric-common / Common-Template / helm / ric-common / templates / _influxdb.tpl
1 ################################################################################\r
2 #   Copyright (c) 2021 HCL Technologies Limited.                               #\r
3 #                                                                              #\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
7 #                                                                              #\r
8 #       http://www.apache.org/licenses/LICENSE-2.0                             #\r
9 #                                                                              #\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
16 \r
17 {{- define "common.name.influxdb" -}}\r
18   {{- printf "influxdb" -}}\r
19 {{- end -}}\r
20 \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
25 {{- end -}}\r
26 \r
27 \r
28 {{- define "common.deploymentname.influxdb" -}}\r
29   {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
30   {{- printf "deployment-%s" $name | trunc 63 | trimSuffix "-" -}}\r
31 {{- end -}}\r
32 \r
33 {{- define "common.configmapname.influxdb" -}}\r
34   {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
35   {{- printf "configmap-%s" $name | trunc 63 | trimSuffix "-" -}}\r
36 {{- end -}}\r
37 \r
38 {{- define "common.containername.influxdb" -}}\r
39   {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
40   {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}}\r
41 {{- end -}}\r
42 \r
43 \r
44 {{- define "common.pvname.influxdb" -}}\r
45   {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
46   {{- printf "pv-%s" $name | trunc 63 | trimSuffix "-" -}}\r
47 {{- end -}}\r
48 \r
49 {{- define "common.pvcname.influxdb" -}}\r
50   {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
51   {{- printf "pvc-%s" $name | trunc 63 | trimSuffix "-" -}}\r
52 {{- end -}}\r
53 \r
54 \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
58 {{- end -}}\r
59 \r
60 \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
69 \r
70 \r
71 {{- define "common.serviceaccountname.influxdb" -}}\r
72   {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
73   {{- printf "svcacct-%s" $name | trunc 63 | trimSuffix "-" -}}\r
74 {{- end -}}\r
75 \r
76 \r
77 {{- define "common.ingressname.influxdb" -}}\r
78   {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
79   {{- printf "ingress-%s" $name | trunc 63 | trimSuffix "-" -}}\r
80 {{- end -}}\r