Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 1 | {{/* |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 2 | # Copyright © 2018 Amdocs, Bell Canada, AT&T |
| 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 | # this is a shared resource for subcharts |
Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 17 | */}} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 18 | apiVersion: v1 |
| 19 | kind: ConfigMap |
| 20 | metadata: |
| 21 | name: aai-filebeat |
| 22 | namespace: {{ include "common.namespace" . }} |
| 23 | labels: |
| 24 | app: {{ include "common.name" . }} |
| 25 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 26 | release: {{ include "common.release" . }} |
| 27 | heritage: {{ .Release.Service }} |
| 28 | data: |
| 29 | {{ tpl (.Files.Glob "resources/config/log/filebeat/*").AsConfig . | indent 2 }} |
| 30 | --- |
| 31 | apiVersion: v1 |
| 32 | kind: ConfigMap |
| 33 | metadata: |
| 34 | name: aai-deployment-configmap |
| 35 | namespace: {{ include "common.namespace" . }} |
| 36 | labels: |
| 37 | app: {{ include "common.name" . }} |
| 38 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 39 | release: {{ include "common.release" . }} |
| 40 | heritage: {{ .Release.Service }} |
| 41 | data: |
| 42 | {{ if .Values.global.installSidecarSecurity }} |
| 43 | {{ tpl (.Files.Glob "resources/config/haproxy/haproxy-pluggable-security.cfg").AsConfig . | indent 2 }} |
| 44 | {{ else }} |
| 45 | {{ tpl (.Files.Glob "resources/config/haproxy/haproxy.cfg").AsConfig . | indent 2 }} |
| 46 | {{ end }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 47 | {{ if .Values.global.installSidecarSecurity }} |
| 48 | --- |
| 49 | apiVersion: v1 |
| 50 | kind: Secret |
| 51 | metadata: |
| 52 | name: aai-fproxy-auth-certs |
| 53 | namespace: {{ include "common.namespace" . }} |
| 54 | type: Opaque |
| 55 | data: |
| 56 | {{ tpl (.Files.Glob "resources/config/fproxy/auth/*").AsSecrets . | indent 2 }} |
| 57 | --- |
| 58 | apiVersion: v1 |
| 59 | kind: Secret |
| 60 | metadata: |
| 61 | name: aai-rproxy-auth-certs |
| 62 | namespace: {{ include "common.namespace" . }} |
| 63 | type: Opaque |
| 64 | data: |
| 65 | {{ tpl (.Files.Glob "resources/config/rproxy/auth/*").AsSecrets . | indent 2 }} |
| 66 | --- |
| 67 | apiVersion: v1 |
| 68 | kind: Secret |
| 69 | metadata: |
| 70 | name: aai-rproxy-security-config |
| 71 | namespace: {{ include "common.namespace" . }} |
| 72 | type: Opaque |
| 73 | data: |
| 74 | {{ tpl (.Files.Glob "resources/config/rproxy/security/*").AsSecrets . | indent 2 }} |
| 75 | {{ end }} |