blob: cd39425073cc03a73128c3da108bb0f22a24ed3e [file] [log] [blame]
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +01001{{/*
jmac065e2ce2018-03-29 01:18:02 +00002# Copyright © 2017 Amdocs, Bell Canada
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.
Krzysztof Opasiakab7a6bb2020-03-24 03:30:51 +010015*/}}
jmac065e2ce2018-03-29 01:18:02 +000016
17apiVersion: v1
18kind: ConfigMap
19metadata:
20 name: {{ include "common.fullname" . }}-filebeat-configmap
21 namespace: {{ include "common.namespace" . }}
toshrajbhardwaj6d1f8df2018-09-18 10:02:00 +000022 labels:
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010025 release: {{ include "common.release" . }}
toshrajbhardwaj6d1f8df2018-09-18 10:02:00 +000026 heritage: {{ .Release.Service }}
jmac065e2ce2018-03-29 01:18:02 +000027data:
28{{ tpl (.Files.Glob "resources/config/log/filebeat/log4j/*").AsConfig . | indent 2 }}
29---
30apiVersion: v1
31kind: ConfigMap
32metadata:
33 name: {{ include "common.fullname" . }}-log-configmap
34 namespace: {{ include "common.namespace" . }}
toshrajbhardwaj6d1f8df2018-09-18 10:02:00 +000035 labels:
36 app: {{ include "common.name" . }}
37 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010038 release: {{ include "common.release" . }}
toshrajbhardwaj6d1f8df2018-09-18 10:02:00 +000039 heritage: {{ .Release.Service }}
jmac065e2ce2018-03-29 01:18:02 +000040data:
41{{ tpl (.Files.Glob "resources/config/log/*").AsConfig . | indent 2 }}
42---
43apiVersion: v1
44kind: ConfigMap
45metadata:
jmaca68f4cb2018-05-10 22:44:19 +000046 name: {{ include "common.fullname" . }}-bin
jmac065e2ce2018-03-29 01:18:02 +000047 namespace: {{ include "common.namespace" . }}
toshrajbhardwaj6d1f8df2018-09-18 10:02:00 +000048 labels:
49 app: {{ include "common.name" . }}
50 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010051 release: {{ include "common.release" . }}
toshrajbhardwaj6d1f8df2018-09-18 10:02:00 +000052 heritage: {{ .Release.Service }}
jmac065e2ce2018-03-29 01:18:02 +000053data:
jmaca68f4cb2018-05-10 22:44:19 +000054{{ tpl (.Files.Glob "resources/config/bin/*").AsConfig . | indent 2 }}
jmac065e2ce2018-03-29 01:18:02 +000055---
56apiVersion: v1
57kind: ConfigMap
58metadata:
jmaca68f4cb2018-05-10 22:44:19 +000059 name: {{ include "common.fullname" . }}-properties
jmac065e2ce2018-03-29 01:18:02 +000060 namespace: {{ include "common.namespace" . }}
toshrajbhardwaj6d1f8df2018-09-18 10:02:00 +000061 labels:
62 app: {{ include "common.name" . }}
63 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010064 release: {{ include "common.release" . }}
toshrajbhardwaj6d1f8df2018-09-18 10:02:00 +000065 heritage: {{ .Release.Service }}
jmac065e2ce2018-03-29 01:18:02 +000066data:
jmaca68f4cb2018-05-10 22:44:19 +000067{{ tpl (.Files.Glob "resources/config/conf/*").AsConfig . | indent 2 }}
Mohammadreza Pasandidehb642ee52018-06-19 15:19:53 -040068---
69apiVersion: v1
70kind: ConfigMap
71metadata:
72 name: {{ include "common.fullname" . }}-env
73 namespace: {{ include "common.namespace" . }}
toshrajbhardwaj6d1f8df2018-09-18 10:02:00 +000074 labels:
75 app: {{ include "common.name" . }}
76 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010077 release: {{ include "common.release" . }}
toshrajbhardwaj6d1f8df2018-09-18 10:02:00 +000078 heritage: {{ .Release.Service }}
Mohammadreza Pasandidehb642ee52018-06-19 15:19:53 -040079data:
80{{ tpl (.Files.Get "resources/env.yaml") . | indent 2 }}
Krzysztof Opasiak6bab0cc2020-04-29 00:55:47 +020081
82{{ if .Values.global.aafEnabled }}
83{{- if .Values.aafConfig.addconfig -}}
84---
85apiVersion: v1
86kind: ConfigMap
87{{- $suffix := "aaf-add-config" }}
88metadata: {{- include "common.resourceMetadata" (dict "suffix" $suffix "dot" . )| nindent 2 }}
89data:
90 aaf-add-config.sh: |-
91 cd /opt/app/osaaf/local && /opt/app/aaf_config/bin/agent.sh local showpass {{.Values.aafConfig.fqi}} {{ .Values.aafConfig.fqdn }} | grep cadi_keystore_password= | cut -d= -f 2 > {{ .Values.aafConfig.credsPath }}/.pass 2>&1
92{{- end -}}
93{{- end -}}