Issue-ID: RICAPP-169 - Inclusion of InfluxDB helm chart for KPIMON, AD, TS, QP xApps
[ric-plt/ric-dep.git] / helm / 3rdparty / influxdb / templates / meta-configmap.yaml
1 ################################################################################
2 #   Copyright (c) 2021 HCL Technolgies Limited.                                #
3 #                                                                              #
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                                    #
7 #                                                                              #
8 #       http://www.apache.org/licenses/LICENSE-2.0                             #
9 #                                                                              #
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 ################################################################################
16 {{ if .Values.enterprise.enabled -}}
17 apiVersion: v1
18 kind: ConfigMap
19 metadata:
20   name: {{ include "common.fullname.influxdb" . }}-meta
21   labels:
22     {{- include "common.influxdb.labels" . | nindent 4 }}
23     app.kubernetes.io/component: meta
24 data:
25   influxdb-meta.conf: |+
26     reporting-disabled = {{ .Values.config.reporting_disabled | default false }}
27     bind-address = ":{{ include "common.serviceport.influxdb.meta.bind_address" . | default 8091 }}"
28
29     [enterprise]
30       license-key = {{ .Values.enterprise.licensekey | quote }}
31
32     [meta]
33       dir = "/var/lib/influxdb/meta"
34       {{- range $key, $value := index .Values.config.meta }}
35       {{ $key }} = {{ $value }}
36       {{- end }}
37       {{- if .Values.enterprise.enabled }}
38       meta-auth-enabled = {{ .Values.config.meta.authEnabled }}
39       {{- end }}
40
41     [logging]
42       {{- range $key, $value := index .Values.config.logging }}
43       {{ $key }} = {{ $value }}
44       {{- end }}
45
46     [tls]
47       {{- range $key, $value := index .Values.config.tls }}
48       {{ $key }} = {{ $value }}
49       {{- end }}
50 {{- end }}