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 }} |
| 47 | --- |
| 48 | apiVersion: v1 |
| 49 | kind: Secret |
| 50 | metadata: |
| 51 | name: aai-haproxy-secret |
| 52 | namespace: {{ include "common.namespace" . }} |
| 53 | labels: |
| 54 | app: {{ include "common.name" . }} |
| 55 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 56 | release: {{ include "common.release" . }} |
| 57 | heritage: {{ .Release.Service }} |
| 58 | type: Opaque |
| 59 | data: |
| 60 | {{ tpl (.Files.Glob "resources/config/haproxy/aai.pem").AsSecrets . | indent 2 }} |
| 61 | # This is a shared key for both resources and traversal |
| 62 | --- |
| 63 | apiVersion: v1 |
| 64 | kind: Secret |
| 65 | metadata: |
| 66 | name: aai-auth-truststore-secret |
| 67 | namespace: {{ include "common.namespace" . }} |
| 68 | labels: |
| 69 | app: {{ include "common.name" . }} |
| 70 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 71 | release: {{ include "common.release" . }} |
| 72 | heritage: {{ .Release.Service }} |
| 73 | type: Opaque |
| 74 | data: |
| 75 | {{ tpl (.Files.Glob "resources/config/aai/*").AsSecrets . | indent 2 }} |
| 76 | |
| 77 | {{ if .Values.global.installSidecarSecurity }} |
| 78 | --- |
| 79 | apiVersion: v1 |
| 80 | kind: Secret |
| 81 | metadata: |
| 82 | name: aai-fproxy-auth-certs |
| 83 | namespace: {{ include "common.namespace" . }} |
| 84 | type: Opaque |
| 85 | data: |
| 86 | {{ tpl (.Files.Glob "resources/config/fproxy/auth/*").AsSecrets . | indent 2 }} |
| 87 | --- |
| 88 | apiVersion: v1 |
| 89 | kind: Secret |
| 90 | metadata: |
| 91 | name: aai-rproxy-auth-certs |
| 92 | namespace: {{ include "common.namespace" . }} |
| 93 | type: Opaque |
| 94 | data: |
| 95 | {{ tpl (.Files.Glob "resources/config/rproxy/auth/*").AsSecrets . | indent 2 }} |
| 96 | --- |
| 97 | apiVersion: v1 |
| 98 | kind: Secret |
| 99 | metadata: |
| 100 | name: aai-rproxy-security-config |
| 101 | namespace: {{ include "common.namespace" . }} |
| 102 | type: Opaque |
| 103 | data: |
| 104 | {{ tpl (.Files.Glob "resources/config/rproxy/security/*").AsSecrets . | indent 2 }} |
| 105 | {{ end }} |