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. |
Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 15 | */}} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 16 | |
| 17 | apiVersion: v1 |
| 18 | kind: ConfigMap |
| 19 | metadata: |
| 20 | name: {{ include "common.fullname" . }}-configmap |
| 21 | namespace: {{ include "common.namespace" . }} |
| 22 | labels: |
| 23 | app: {{ include "common.name" . }} |
| 24 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 25 | release: {{ include "common.release" . }} |
| 26 | heritage: {{ .Release.Service }} |
| 27 | data: |
| 28 | {{ tpl (.Files.Glob "resources/config/logback.xml").AsConfig . | indent 2 }} |
| 29 | {{ tpl (.Files.Glob "resources/config/localhost-access-logback.xml").AsConfig . | indent 2 }} |
| 30 | {{ tpl (.Files.Glob "resources/config/janusgraph-realtime.properties").AsConfig . | indent 2 }} |
| 31 | {{ tpl (.Files.Glob "resources/config/janusgraph-cached.properties").AsConfig . | indent 2 }} |
| 32 | {{ tpl (.Files.Glob "resources/config/aaiconfig.properties").AsConfig . | indent 2 }} |
| 33 | {{ tpl (.Files.Glob "resources/config/application.properties").AsConfig . | indent 2 }} |
| 34 | {{ tpl (.Files.Glob "resources/config/application-keycloak.properties").AsConfig . | indent 2 }} |
| 35 | {{ tpl (.Files.Glob "resources/config/realm.properties").AsConfig . | indent 2 }} |
| 36 | --- |
| 37 | apiVersion: v1 |
| 38 | kind: ConfigMap |
| 39 | metadata: |
| 40 | name: {{ include "common.fullname" . }}-aaf-props |
| 41 | namespace: {{ include "common.namespace" . }} |
| 42 | labels: |
| 43 | app: {{ include "common.name" . }} |
| 44 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 45 | release: {{ include "common.release" . }} |
| 46 | heritage: {{ .Release.Service }} |
| 47 | data: |
| 48 | {{ tpl (.Files.Glob "resources/config/aaf/org.osaaf.location.props").AsConfig . | indent 2 }} |
| 49 | {{ tpl (.Files.Glob "resources/config/aaf/permissions.properties").AsConfig . | indent 2 }} |
| 50 | {{ tpl (.Files.Glob "resources/config/aaf/org.onap.aai.props").AsConfig . | indent 2 }} |
| 51 | {{ tpl (.Files.Glob "resources/config/aaf/cadi.properties").AsConfig . | indent 2 }} |
| 52 | |
| 53 | --- |
| 54 | apiVersion: v1 |
| 55 | kind: Secret |
| 56 | metadata: |
| 57 | name: {{ include "common.fullname" . }}-aaf-keys |
| 58 | namespace: {{ include "common.namespace" . }} |
| 59 | labels: |
| 60 | app: {{ include "common.name" . }} |
| 61 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 62 | release: {{ include "common.release" . }} |
| 63 | heritage: {{ .Release.Service }} |
| 64 | type: Opaque |
| 65 | data: |
| 66 | {{ tpl (.Files.Glob "resources/config/aaf/org.onap.aai.keyfile").AsSecrets . | indent 2 }} |
| 67 | {{ tpl (.Files.Glob "resources/config/aaf/org.onap.aai.p12").AsSecrets . | indent 2 }} |
| 68 | {{ tpl (.Files.Glob "resources/config/aaf/bath_config.csv").AsSecrets . | indent 2 }} |
| 69 | |
| 70 | {{ if .Values.global.installSidecarSecurity }} |
| 71 | --- |
| 72 | apiVersion: v1 |
| 73 | kind: ConfigMap |
| 74 | metadata: |
| 75 | name: {{ include "common.fullname" . }}-aai-policy-configmap |
| 76 | namespace: {{ include "common.namespace" . }} |
| 77 | labels: |
| 78 | app: {{ include "common.name" . }} |
| 79 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 80 | release: {{ include "common.release" . }} |
| 81 | heritage: {{ .Release.Service }} |
| 82 | data: |
| 83 | {{ tpl (.Files.Glob "resources/config/auth/aai_policy.json").AsConfig . | indent 2 }} |
| 84 | --- |
| 85 | apiVersion: v1 |
| 86 | kind: ConfigMap |
| 87 | metadata: |
| 88 | name: {{ include "common.fullname" . }}-fproxy-config |
| 89 | namespace: {{ include "common.namespace" . }} |
| 90 | data: |
| 91 | {{ tpl (.Files.Glob "resources/fproxy/config/*").AsConfig . | indent 2 }} |
| 92 | --- |
| 93 | apiVersion: v1 |
| 94 | kind: ConfigMap |
| 95 | metadata: |
| 96 | name: {{ include "common.fullname" . }}-fproxy-log-config |
| 97 | namespace: {{ include "common.namespace" . }} |
| 98 | labels: |
| 99 | app: {{ include "common.name" . }} |
| 100 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 101 | release: {{ include "common.release" . }} |
| 102 | heritage: {{ .Release.Service }} |
| 103 | data: |
| 104 | {{ tpl (.Files.Glob "resources/fproxy/config/logback-spring.xml").AsConfig . | indent 2 }} |
| 105 | --- |
| 106 | apiVersion: v1 |
| 107 | kind: Secret |
| 108 | metadata: |
| 109 | name: {{ include "common.fullname" . }}-fproxy-auth-config |
| 110 | namespace: {{ include "common.namespace" . }} |
| 111 | type: Opaque |
| 112 | data: |
| 113 | {{ tpl (.Files.Glob "resources/fproxy/config/auth/*").AsSecrets . | indent 2 }} |
| 114 | --- |
| 115 | apiVersion: v1 |
| 116 | kind: ConfigMap |
| 117 | metadata: |
| 118 | name: {{ include "common.fullname" . }}-rproxy-config |
| 119 | namespace: {{ include "common.namespace" . }} |
| 120 | data: |
| 121 | {{ tpl (.Files.Glob "resources/rproxy/config/*").AsConfig . | indent 2 }} |
| 122 | --- |
| 123 | apiVersion: v1 |
| 124 | kind: ConfigMap |
| 125 | metadata: |
| 126 | name: {{ include "common.fullname" . }}-rproxy-log-config |
| 127 | namespace: {{ include "common.namespace" . }} |
| 128 | labels: |
| 129 | app: {{ include "common.name" . }} |
| 130 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 131 | release: {{ include "common.release" . }} |
| 132 | heritage: {{ .Release.Service }} |
| 133 | data: |
| 134 | {{ tpl (.Files.Glob "resources/rproxy/config/logback-spring.xml").AsConfig . | indent 2 }} |
| 135 | --- |
| 136 | apiVersion: v1 |
| 137 | kind: ConfigMap |
| 138 | metadata: |
| 139 | name: {{ include "common.fullname" . }}-rproxy-uri-auth-config |
| 140 | namespace: {{ include "common.namespace" . }} |
| 141 | data: |
| 142 | {{ tpl (.Files.Glob "resources/rproxy/config/auth/uri-authorization.json").AsConfig . | indent 2 }} |
| 143 | --- |
| 144 | apiVersion: v1 |
| 145 | kind: Secret |
| 146 | metadata: |
| 147 | name: {{ include "common.fullname" . }}-rproxy-auth-config |
| 148 | namespace: {{ include "common.namespace" . }} |
| 149 | type: Opaque |
| 150 | data: |
| 151 | {{ tpl (.Files.Glob "resources/rproxy/config/auth/*").AsSecrets . | indent 2 }} |
| 152 | --- |
| 153 | apiVersion: v1 |
| 154 | kind: Secret |
| 155 | metadata: |
| 156 | name: {{ include "common.fullname" . }}-rproxy-security-config |
| 157 | namespace: {{ include "common.namespace" . }} |
| 158 | type: Opaque |
| 159 | data: |
| 160 | {{ tpl (.Files.Glob "resources/rproxy/config/security/*").AsSecrets . | indent 2 }} |
| 161 | {{ end }} |