5e37856d19d853dd7a7afa200828c20ec6d36de2
[oom.git] / kubernetes / dcaegen2 / components / dcae-bootstrap / resources / config / k8s-plugin.json
1 {{/*
2 #============LICENSE_START========================================================
3 #=================================================================================
4 # Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
5 # Modifications Copyright © 2018 Amdocs, Bell Canada
6 # Modifications (c) 2020 Nokia. All rights reserved.
7 # ================================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 #     http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 # ============LICENSE_END=========================================================
20 */}}
21
22 {
23   "namespace": "{{ if .Values.dcae_ns }}{{ .Values.dcae_ns}}{{ else }}{{include "common.namespace" . }}{{ end}}",
24   "consul_dns_name": "{{ .Values.config.address.consul.host }}.{{ include "common.namespace" . }}",
25   "default_k8s_location": "{{ .Values.default_k8s_location }}",
26   "image_pull_secrets": [
27     "{{ include "common.namespace" . }}-docker-registry-key"
28   ],
29   "filebeat": {
30     "log_path": "/var/log/onap",
31     "data_path": "/usr/share/filebeat/data",
32     "config_path": "/usr/share/filebeat/filebeat.yml",
33     "config_subpath": "filebeat.yml",
34     "image": "{{  include "repositoryGenerator.image.logging" . }}",
35     "config_map": "{{ include "common.release" . }}-dcae-filebeat-configmap"
36   },
37   "tls": {
38     "cert_path": "/opt/app/osaaf",
39     "image": "{{ include "repositoryGenerator.repository" . }}/{{ .Values.global.tlsImage }}",
40     "component_cert_dir": "/opt/dcae/cacert",
41     "component_ca_cert_path": "/opt/dcae/cacert/cacert.pem",
42     "ca_cert_configmap": "{{ include "common.fullname" . }}-dcae-cacert"
43   },
44   "external_cert": {
45     "image_tag": "{{ include "repositoryGenerator.repository" . }}/{{ .Values.cmpv2Config.global.platform.certServiceClient.image }}",
46     "request_url": "{{ .Values.cmpv2Config.global.platform.certServiceClient.envVariables.requestURL }}",
47     "timeout": "{{ .Values.cmpv2Config.global.platform.certServiceClient.envVariables.requestTimeout }}",
48     "country": "{{ .Values.cmpv2Config.global.platform.certServiceClient.envVariables.cmpv2Country }}",
49     "organization": "{{ .Values.cmpv2Config.global.platform.certServiceClient.envVariables.cmpv2Organization }}",
50     "state": "{{ .Values.cmpv2Config.global.platform.certServiceClient.envVariables.cmpv2State }}",
51     "organizational_unit": "{{ .Values.cmpv2Config.global.platform.certServiceClient.envVariables.cmpv2OrganizationalUnit }}",
52     "location": "{{ .Values.cmpv2Config.global.platform.certServiceClient.envVariables.cmpv2Location }}",
53     "cert_secret_name": "{{ .Values.cmpv2Config.global.platform.certServiceClient.secretName }}",
54     "keystore_password": "{{ .Values.cmpv2Config.global.platform.certServiceClient.envVariables.keystorePassword }}",
55     "truststore_password": "{{ .Values.cmpv2Config.global.platform.certServiceClient.envVariables.truststorePassword }}"
56   },
57   "cert_post_processor": {
58     "image_tag": "{{ include "repositoryGenerator.repository" . }}/{{ .Values.cmpv2Config.global.platform.certPostProcessor.image }}"
59   }
60 }