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, AT&T |
| 3 | # Modifications Copyright © 2018 Bell Canada |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 16 | */}} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 17 | |
| 18 | apiVersion: v1 |
| 19 | kind: ConfigMap |
| 20 | metadata: |
| 21 | name: {{ include "common.fullname" . }}-configmap |
| 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/*").AsConfig . | indent 2 }} |
| 30 | |
| 31 | {{ if .Values.global.installSidecarSecurity }} |
| 32 | --- |
| 33 | apiVersion: v1 |
| 34 | kind: ConfigMap |
| 35 | metadata: |
| 36 | name: {{ include "common.fullname" . }}-fproxy-config |
| 37 | namespace: {{ include "common.namespace" . }} |
| 38 | data: |
| 39 | {{ tpl (.Files.Glob "resources/fproxy/config/*").AsConfig . | indent 2 }} |
| 40 | --- |
| 41 | apiVersion: v1 |
| 42 | kind: ConfigMap |
| 43 | metadata: |
| 44 | name: {{ include "common.fullname" . }}-fproxy-log-config |
| 45 | namespace: {{ include "common.namespace" . }} |
| 46 | data: |
| 47 | {{ tpl (.Files.Glob "resources/fproxy/config/logback-spring.xml").AsConfig . | indent 2 }} |
| 48 | --- |
| 49 | apiVersion: v1 |
| 50 | kind: ConfigMap |
| 51 | metadata: |
| 52 | name: {{ include "common.fullname" . }}-rproxy-config |
| 53 | namespace: {{ include "common.namespace" . }} |
| 54 | data: |
| 55 | {{ tpl (.Files.Glob "resources/rproxy/config/*").AsConfig . | indent 2 }} |
| 56 | --- |
| 57 | apiVersion: v1 |
| 58 | kind: ConfigMap |
| 59 | metadata: |
| 60 | name: {{ include "common.fullname" . }}-rproxy-log-config |
| 61 | namespace: {{ include "common.namespace" . }} |
| 62 | data: |
| 63 | {{ tpl (.Files.Glob "resources/rproxy/config/logback-spring.xml").AsConfig . | indent 2 }} |
| 64 | --- |
| 65 | apiVersion: v1 |
| 66 | kind: ConfigMap |
| 67 | metadata: |
| 68 | name: {{ include "common.fullname" . }}-rproxy-uri-auth-config |
| 69 | namespace: {{ include "common.namespace" . }} |
| 70 | data: |
| 71 | {{ tpl (.Files.Glob "resources/rproxy/config/auth/uri-authorization.json").AsConfig . | indent 2 }} |
| 72 | {{ end }} |