fb1a40edfd56d23a2e583552ae18f106938ec4f3
[oom.git] / kubernetes / dcaegen2 / components / dcae-cloudify-manager / resources / config / plugins / 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-2021 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   "namespace": "{{ if .Values.dcae_ns }}{{ .Values.dcae_ns}}{{ else }}{{include "common.namespace" . }}{{ end}}",
23   "consul_dns_name": "{{ .Values.config.address.consul.host }}.{{ include "common.namespace" . }}",
24   "default_k8s_location": "{{ .Values.default_k8s_location }}",
25   "image_pull_secrets": [
26     "{{ include "common.namespace" . }}-docker-registry-key"
27   ],
28   "filebeat": {
29     "log_path": "/var/log/onap",
30     "data_path": "/usr/share/filebeat/data",
31     "config_path": "/usr/share/filebeat/filebeat.yml",
32     "config_subpath": "filebeat.yml",
33     "image": "{{  include "repositoryGenerator.image.logging" . }}",
34     "config_map": "{{ include "common.release" . }}-dcae-filebeat-configmap"
35   },
36   "tls": {
37     "cert_path": "/opt/app/osaaf",
38     "image": "{{ include "repositoryGenerator.repository" . }}/{{ .Values.global.tlsImage }}",
39     "component_cert_dir": "/opt/dcae/cacert",
40     "component_ca_cert_path": "/opt/dcae/cacert/cacert.pem",
41     "ca_cert_configmap": "{{ include "common.fullname" . }}-dcae-cacert"
42   },
43   "external_cert": {
44     "country": "{{ .Values.cmpv2Config.global.certificate.default.subject.country }}",
45     "organization": "{{ .Values.cmpv2Config.global.certificate.default.subject.organization }}",
46     "state": "{{ .Values.cmpv2Config.global.certificate.default.subject.province }}",
47     "organizational_unit": "{{ .Values.cmpv2Config.global.certificate.default.subject.organizationalUnit }}",
48     "location": "{{ .Values.cmpv2Config.global.certificate.default.subject.locality }}",
49     "cert_secret_name": "{{ .Values.cmpv2Config.global.platform.certificates.clientSecretName }}",
50     "keystore_secret_key": "{{ .Values.cmpv2Config.global.platform.certificates.keystoreKeyRef }}",
51     "truststore_secret_key": "{{ .Values.cmpv2Config.global.platform.certificates.truststoreKeyRef }}",
52     "keystore_password_secret_name": "{{ .Values.cmpv2Config.global.platform.certificates.keystorePasswordSecretName }}",
53     "keystore_password_secret_key": "{{ .Values.cmpv2Config.global.platform.certificates.keystorePasswordSecretKey }}",
54     "truststore_password_secret_name": "{{ .Values.cmpv2Config.global.platform.certificates.truststorePasswordSecretName }}",
55     "truststore_password_secret_key": "{{ .Values.cmpv2Config.global.platform.certificates.truststorePasswordSecretKey }}"
56   },
57   "cert_post_processor": {
58     "image_tag": "{{ include "repositoryGenerator.repository" . }}/{{ .Values.cmpv2Config.global.platform.certPostProcessor.image }}"
59   },
60   "cmpv2_issuer": {
61     "enabled": "true",
62     "name": "{{ .Values.cmpv2issuer.name }}"
63   }
64 }