Krzysztof Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 1 | {{/* |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 2 | # 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 Opasiak | ab7a6bb | 2020-03-24 03:30:51 +0100 | [diff] [blame] | 15 | */}} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 16 | |
| 17 | apiVersion: v1 |
| 18 | kind: ConfigMap |
| 19 | metadata: |
| 20 | name: {{ include "common.fullname" . }}-filebeat-configmap |
| 21 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 6d1f8df | 2018-09-18 10:02:00 +0000 | [diff] [blame] | 22 | labels: |
| 23 | app: {{ include "common.name" . }} |
| 24 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 25 | release: {{ include "common.release" . }} |
toshrajbhardwaj | 6d1f8df | 2018-09-18 10:02:00 +0000 | [diff] [blame] | 26 | heritage: {{ .Release.Service }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 27 | data: |
| 28 | {{ tpl (.Files.Glob "resources/config/log/filebeat/log4j/*").AsConfig . | indent 2 }} |
| 29 | --- |
| 30 | apiVersion: v1 |
| 31 | kind: ConfigMap |
| 32 | metadata: |
| 33 | name: {{ include "common.fullname" . }}-log-configmap |
| 34 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 6d1f8df | 2018-09-18 10:02:00 +0000 | [diff] [blame] | 35 | labels: |
| 36 | app: {{ include "common.name" . }} |
| 37 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 38 | release: {{ include "common.release" . }} |
toshrajbhardwaj | 6d1f8df | 2018-09-18 10:02:00 +0000 | [diff] [blame] | 39 | heritage: {{ .Release.Service }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 40 | data: |
| 41 | {{ tpl (.Files.Glob "resources/config/log/*").AsConfig . | indent 2 }} |
| 42 | --- |
| 43 | apiVersion: v1 |
| 44 | kind: ConfigMap |
| 45 | metadata: |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 46 | name: {{ include "common.fullname" . }}-bin |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 47 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 6d1f8df | 2018-09-18 10:02:00 +0000 | [diff] [blame] | 48 | labels: |
| 49 | app: {{ include "common.name" . }} |
| 50 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 51 | release: {{ include "common.release" . }} |
toshrajbhardwaj | 6d1f8df | 2018-09-18 10:02:00 +0000 | [diff] [blame] | 52 | heritage: {{ .Release.Service }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 53 | data: |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 54 | {{ tpl (.Files.Glob "resources/config/bin/*").AsConfig . | indent 2 }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 55 | --- |
| 56 | apiVersion: v1 |
| 57 | kind: ConfigMap |
| 58 | metadata: |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 59 | name: {{ include "common.fullname" . }}-properties |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 60 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 6d1f8df | 2018-09-18 10:02:00 +0000 | [diff] [blame] | 61 | labels: |
| 62 | app: {{ include "common.name" . }} |
| 63 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 64 | release: {{ include "common.release" . }} |
toshrajbhardwaj | 6d1f8df | 2018-09-18 10:02:00 +0000 | [diff] [blame] | 65 | heritage: {{ .Release.Service }} |
jmac | 065e2ce | 2018-03-29 01:18:02 +0000 | [diff] [blame] | 66 | data: |
jmac | a68f4cb | 2018-05-10 22:44:19 +0000 | [diff] [blame] | 67 | {{ tpl (.Files.Glob "resources/config/conf/*").AsConfig . | indent 2 }} |
Mohammadreza Pasandideh | b642ee5 | 2018-06-19 15:19:53 -0400 | [diff] [blame] | 68 | --- |
| 69 | apiVersion: v1 |
| 70 | kind: ConfigMap |
| 71 | metadata: |
| 72 | name: {{ include "common.fullname" . }}-env |
| 73 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 6d1f8df | 2018-09-18 10:02:00 +0000 | [diff] [blame] | 74 | labels: |
| 75 | app: {{ include "common.name" . }} |
| 76 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
Krzysztof Opasiak | 137d7cc | 2020-01-24 23:49:11 +0100 | [diff] [blame] | 77 | release: {{ include "common.release" . }} |
toshrajbhardwaj | 6d1f8df | 2018-09-18 10:02:00 +0000 | [diff] [blame] | 78 | heritage: {{ .Release.Service }} |
Mohammadreza Pasandideh | b642ee5 | 2018-06-19 15:19:53 -0400 | [diff] [blame] | 79 | data: |
| 80 | {{ tpl (.Files.Get "resources/env.yaml") . | indent 2 }} |
Krzysztof Opasiak | 6bab0cc | 2020-04-29 00:55:47 +0200 | [diff] [blame^] | 81 | |
| 82 | {{ if .Values.global.aafEnabled }} |
| 83 | {{- if .Values.aafConfig.addconfig -}} |
| 84 | --- |
| 85 | apiVersion: v1 |
| 86 | kind: ConfigMap |
| 87 | {{- $suffix := "aaf-add-config" }} |
| 88 | metadata: {{- include "common.resourceMetadata" (dict "suffix" $suffix "dot" . )| nindent 2 }} |
| 89 | data: |
| 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 -}} |