Issue-ID: RICAPP-169 - Inclusion of InfluxDB helm chart for KPIMON, AD, TS, QP xApps 91/5991/2
authorChandru <chandrasekaran-r@hcl.com>
Mon, 3 May 2021 07:49:55 +0000 (13:19 +0530)
committerChandru <chandrasekaran-r@hcl.com>
Wed, 5 May 2021 11:33:46 +0000 (17:03 +0530)
Added _influxdb.tpl in common templates

Signed-off-by: Chandru <chandrasekaran-r@hcl.com>
Change-Id: Ibec290477a2d9ed193b3b071abe2afc9bb2eef9a

ric-common/Common-Template/helm/ric-common/templates/_influxdb.tpl [new file with mode: 0644]

diff --git a/ric-common/Common-Template/helm/ric-common/templates/_influxdb.tpl b/ric-common/Common-Template/helm/ric-common/templates/_influxdb.tpl
new file mode 100644 (file)
index 0000000..6801cee
--- /dev/null
@@ -0,0 +1,80 @@
+################################################################################\r
+#   Copyright (c) 2021 HCL Technologies Limited.                               #\r
+#                                                                              #\r
+#   Licensed under the Apache License, Version 2.0 (the "License");            #\r
+#   you may not use this file except in compliance with the License.           #\r
+#   You may obtain a copy of the License at                                    #\r
+#                                                                              #\r
+#       http://www.apache.org/licenses/LICENSE-2.0                             #\r
+#                                                                              #\r
+#   Unless required by applicable law or agreed to in writing, software        #\r
+#   distributed under the License is distributed on an "AS IS" BASIS,          #\r
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #\r
+#   See the License for the specific language governing permissions and        #\r
+#   limitations under the License.                                             #\r
+################################################################################\r
+\r
+{{- define "common.name.influxdb" -}}\r
+  {{- printf "influxdb" -}}\r
+{{- end -}}\r
+\r
+{{- define "common.fullname.influxdb" -}}\r
+  {{- $name := ( include "common.name.influxdb" . ) -}}\r
+  {{- $namespace := ( include "common.namespace.platform" . ) -}}\r
+  {{- printf "%s-%s" $namespace $name | trunc 63 | trimSuffix "-" -}}\r
+{{- end -}}\r
+\r
+\r
+{{- define "common.deploymentname.influxdb" -}}\r
+  {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
+  {{- printf "deployment-%s" $name | trunc 63 | trimSuffix "-" -}}\r
+{{- end -}}\r
+\r
+{{- define "common.configmapname.influxdb" -}}\r
+  {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
+  {{- printf "configmap-%s" $name | trunc 63 | trimSuffix "-" -}}\r
+{{- end -}}\r
+\r
+{{- define "common.containername.influxdb" -}}\r
+  {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
+  {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}}\r
+{{- end -}}\r
+\r
+\r
+{{- define "common.pvname.influxdb" -}}\r
+  {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
+  {{- printf "pv-%s" $name | trunc 63 | trimSuffix "-" -}}\r
+{{- end -}}\r
+\r
+{{- define "common.pvcname.influxdb" -}}\r
+  {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
+  {{- printf "pvc-%s" $name | trunc 63 | trimSuffix "-" -}}\r
+{{- end -}}\r
+\r
+\r
+{{- define "common.servicename.influxdb.http" -}}\r
+  {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
+  {{- printf "service-%s-http" $name | trunc 63 | trimSuffix "-" -}}\r
+{{- end -}}\r
+\r
+\r
+{{- define "common.serviceport.influxdb.http" -}}8086{{- end -}}\r
+{{- define "common.serviceport.influxdb.meta.bind_address" -}}8091{{- end -}}\r
+{{- define "common.serviceport.influxdb.http.bind_address" -}}8086{{- end -}}\r
+{{- define "common.serviceport.influxdb.rpc.bind_address" -}}8088{{- end -}}\r
+{{- define "common.serviceport.influxdb.graphite.bind_address" -}}2003{{- end -}}\r
+{{- define "common.serviceport.influxdb.udp.bind_address" -}}8089{{- end -}}\r
+{{- define "common.serviceport.influxdb.opentsdb.bind_address" -}}4242{{- end -}}\r
+{{- define "common.serviceport.influxdb.collectd.bind_address" -}}25826{{- end -}}\r
+\r
+\r
+{{- define "common.serviceaccountname.influxdb" -}}\r
+  {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
+  {{- printf "svcacct-%s" $name | trunc 63 | trimSuffix "-" -}}\r
+{{- end -}}\r
+\r
+\r
+{{- define "common.ingressname.influxdb" -}}\r
+  {{- $name := ( include "common.fullname.influxdb" . ) -}}\r
+  {{- printf "ingress-%s" $name | trunc 63 | trimSuffix "-" -}}\r
+{{- end -}}\r