toshrajbhardwaj | f4fc1c6 | 2018-08-06 07:35:14 +0000 | [diff] [blame] | 1 | # Copyright © 2018 Amdocs, Bell Canada, AT&T |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 15 | apiVersion: v1 |
| 16 | kind: ConfigMap |
| 17 | metadata: |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 18 | name: {{ include "common.fullname" . }}-log |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 19 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 4cd5fc0 | 2018-09-18 03:24:47 +0000 | [diff] [blame] | 20 | labels: |
| 21 | app: {{ include "common.name" . }} |
| 22 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 23 | release: {{ .Release.Name }} |
| 24 | heritage: {{ .Release.Service }} |
kj | 9bf2731 | 2018-03-19 15:07:44 +0200 | [diff] [blame] | 25 | data: |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 26 | {{ tpl (.Files.Glob "resources/config/logback.xml").AsConfig . | indent 2 }} |
| 27 | --- |
| 28 | apiVersion: v1 |
| 29 | kind: ConfigMap |
| 30 | metadata: |
| 31 | name: {{ include "common.fullname" . }}-localhost-access-log-configmap |
| 32 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 4cd5fc0 | 2018-09-18 03:24:47 +0000 | [diff] [blame] | 33 | labels: |
| 34 | app: {{ include "common.name" . }} |
| 35 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 36 | release: {{ .Release.Name }} |
| 37 | heritage: {{ .Release.Service }} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 38 | data: |
| 39 | {{ tpl (.Files.Glob "resources/config/localhost-access-logback.xml").AsConfig . | indent 2 }} |
| 40 | --- |
| 41 | apiVersion: v1 |
| 42 | kind: ConfigMap |
| 43 | metadata: |
| 44 | name: {{ include "common.fullname" . }}-db-real-configmap |
| 45 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 4cd5fc0 | 2018-09-18 03:24:47 +0000 | [diff] [blame] | 46 | labels: |
| 47 | app: {{ include "common.name" . }} |
| 48 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 49 | release: {{ .Release.Name }} |
| 50 | heritage: {{ .Release.Service }} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 51 | data: |
| 52 | {{ tpl (.Files.Glob "resources/config/janusgraph-realtime.properties").AsConfig . | indent 2 }} |
| 53 | --- |
| 54 | apiVersion: v1 |
| 55 | kind: ConfigMap |
| 56 | metadata: |
| 57 | name: {{ include "common.fullname" . }}-db-cached-configmap |
| 58 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 4cd5fc0 | 2018-09-18 03:24:47 +0000 | [diff] [blame] | 59 | labels: |
| 60 | app: {{ include "common.name" . }} |
| 61 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 62 | release: {{ .Release.Name }} |
| 63 | heritage: {{ .Release.Service }} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 64 | data: |
| 65 | {{ tpl (.Files.Glob "resources/config/janusgraph-cached.properties").AsConfig . | indent 2 }} |
| 66 | --- |
| 67 | apiVersion: v1 |
| 68 | kind: ConfigMap |
| 69 | metadata: |
| 70 | name: {{ include "common.fullname" . }}-aaiconfig-configmap |
| 71 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 4cd5fc0 | 2018-09-18 03:24:47 +0000 | [diff] [blame] | 72 | labels: |
| 73 | app: {{ include "common.name" . }} |
| 74 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 75 | release: {{ .Release.Name }} |
| 76 | heritage: {{ .Release.Service }} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 77 | data: |
| 78 | {{ tpl (.Files.Glob "resources/config/aaiconfig.properties").AsConfig . | indent 2 }} |
| 79 | --- |
| 80 | apiVersion: v1 |
| 81 | kind: ConfigMap |
| 82 | metadata: |
| 83 | name: {{ include "common.fullname" . }}-springapp-configmap |
| 84 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 4cd5fc0 | 2018-09-18 03:24:47 +0000 | [diff] [blame] | 85 | labels: |
| 86 | app: {{ include "common.name" . }} |
| 87 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 88 | release: {{ .Release.Name }} |
| 89 | heritage: {{ .Release.Service }} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 90 | data: |
| 91 | {{ tpl (.Files.Glob "resources/config/application.properties").AsConfig . | indent 2 }} |
| 92 | --- |
| 93 | apiVersion: v1 |
| 94 | kind: ConfigMap |
| 95 | metadata: |
| 96 | name: {{ include "common.fullname" . }}-realm-configmap |
| 97 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 4cd5fc0 | 2018-09-18 03:24:47 +0000 | [diff] [blame] | 98 | labels: |
| 99 | app: {{ include "common.name" . }} |
| 100 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 101 | release: {{ .Release.Name }} |
| 102 | heritage: {{ .Release.Service }} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 103 | data: |
| 104 | {{ tpl (.Files.Glob "resources/config/realm.properties").AsConfig . | indent 2 }} |
Pavel Paroulek | 58ab38e | 2018-09-12 21:34:41 +0200 | [diff] [blame] | 105 | --- |
| 106 | apiVersion: v1 |
| 107 | kind: ConfigMap |
| 108 | metadata: |
| 109 | name: {{ include "common.fullname" . }}-aaf-props |
| 110 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 4cd5fc0 | 2018-09-18 03:24:47 +0000 | [diff] [blame] | 111 | labels: |
| 112 | app: {{ include "common.name" . }} |
| 113 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 114 | release: {{ .Release.Name }} |
| 115 | heritage: {{ .Release.Service }} |
Pavel Paroulek | 58ab38e | 2018-09-12 21:34:41 +0200 | [diff] [blame] | 116 | data: |
| 117 | {{ tpl (.Files.Glob "resources/config/aaf/org.osaaf.location.props").AsConfig . | indent 2 }} |
| 118 | {{ tpl (.Files.Glob "resources/config/aaf/permissions.properties").AsConfig . | indent 2 }} |
| 119 | {{ tpl (.Files.Glob "resources/config/aaf/org.onap.aai.props").AsConfig . | indent 2 }} |
| 120 | {{ tpl (.Files.Glob "resources/config/aaf/cadi.properties").AsConfig . | indent 2 }} |
| 121 | |
| 122 | --- |
| 123 | apiVersion: v1 |
| 124 | kind: Secret |
| 125 | metadata: |
| 126 | name: {{ include "common.fullname" . }}-aaf-keys |
| 127 | namespace: {{ include "common.namespace" . }} |
toshrajbhardwaj | 4cd5fc0 | 2018-09-18 03:24:47 +0000 | [diff] [blame] | 128 | labels: |
| 129 | app: {{ include "common.name" . }} |
| 130 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 131 | release: {{ .Release.Name }} |
| 132 | heritage: {{ .Release.Service }} |
Pavel Paroulek | 58ab38e | 2018-09-12 21:34:41 +0200 | [diff] [blame] | 133 | type: Opaque |
| 134 | data: |
| 135 | {{ tpl (.Files.Glob "resources/config/aaf/org.onap.aai.keyfile").AsSecrets . | indent 2 }} |
| 136 | {{ tpl (.Files.Glob "resources/config/aaf/org.onap.aai.p12").AsSecrets . | indent 2 }} |
| 137 | {{ tpl (.Files.Glob "resources/config/aaf/truststoreONAPall.jks").AsSecrets . | indent 2 }} |
Pavel Paroulek | 8aaf2cf | 2018-10-16 15:21:06 +0200 | [diff] [blame] | 138 | {{ tpl (.Files.Glob "resources/config/aaf/bath_config.csv").AsSecrets . | indent 2 }} |
Ravi Geda | 2578aa1 | 2018-11-07 22:37:16 +0000 | [diff] [blame] | 139 | |
| 140 | {{ if .Values.global.installSidecarSecurity }} |
| 141 | --- |
| 142 | apiVersion: v1 |
| 143 | kind: ConfigMap |
| 144 | metadata: |
| 145 | name: {{ include "common.fullname" . }}-aai-policy-configmap |
| 146 | namespace: {{ include "common.namespace" . }} |
| 147 | labels: |
| 148 | app: {{ include "common.name" . }} |
| 149 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 150 | release: {{ .Release.Name }} |
| 151 | heritage: {{ .Release.Service }} |
| 152 | data: |
| 153 | {{ tpl (.Files.Glob "resources/config/auth/aai_policy.json").AsConfig . | indent 2 }} |
| 154 | --- |
| 155 | apiVersion: v1 |
| 156 | kind: ConfigMap |
| 157 | metadata: |
| 158 | name: {{ include "common.fullname" . }}-fproxy-config |
| 159 | namespace: {{ include "common.namespace" . }} |
| 160 | data: |
| 161 | {{ tpl (.Files.Glob "resources/fproxy/config/*").AsConfig . | indent 2 }} |
| 162 | --- |
| 163 | apiVersion: v1 |
| 164 | kind: ConfigMap |
| 165 | metadata: |
| 166 | name: {{ include "common.fullname" . }}-fproxy-log-config |
| 167 | namespace: {{ include "common.namespace" . }} |
| 168 | labels: |
| 169 | app: {{ include "common.name" . }} |
| 170 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 171 | release: {{ .Release.Name }} |
| 172 | heritage: {{ .Release.Service }} |
| 173 | data: |
| 174 | {{ tpl (.Files.Glob "resources/fproxy/config/logback-spring.xml").AsConfig . | indent 2 }} |
| 175 | --- |
| 176 | apiVersion: v1 |
| 177 | kind: Secret |
| 178 | metadata: |
| 179 | name: {{ include "common.fullname" . }}-fproxy-auth-config |
| 180 | namespace: {{ include "common.namespace" . }} |
| 181 | type: Opaque |
| 182 | data: |
| 183 | {{ tpl (.Files.Glob "resources/fproxy/config/auth/*").AsSecrets . | indent 2 }} |
| 184 | --- |
| 185 | apiVersion: v1 |
| 186 | kind: ConfigMap |
| 187 | metadata: |
| 188 | name: {{ include "common.fullname" . }}-rproxy-config |
| 189 | namespace: {{ include "common.namespace" . }} |
| 190 | data: |
| 191 | {{ tpl (.Files.Glob "resources/rproxy/config/*").AsConfig . | indent 2 }} |
| 192 | --- |
| 193 | apiVersion: v1 |
| 194 | kind: ConfigMap |
| 195 | metadata: |
| 196 | name: {{ include "common.fullname" . }}-rproxy-log-config |
| 197 | namespace: {{ include "common.namespace" . }} |
| 198 | labels: |
| 199 | app: {{ include "common.name" . }} |
| 200 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 201 | release: {{ .Release.Name }} |
| 202 | heritage: {{ .Release.Service }} |
| 203 | data: |
| 204 | {{ tpl (.Files.Glob "resources/rproxy/config/logback-spring.xml").AsConfig . | indent 2 }} |
| 205 | --- |
| 206 | apiVersion: v1 |
| 207 | kind: Secret |
| 208 | metadata: |
| 209 | name: {{ include "common.fullname" . }}-rproxy-auth-config |
| 210 | namespace: {{ include "common.namespace" . }} |
| 211 | type: Opaque |
| 212 | data: |
| 213 | {{ tpl (.Files.Glob "resources/rproxy/config/auth/*").AsSecrets . | indent 2 }} |
| 214 | --- |
| 215 | apiVersion: v1 |
| 216 | kind: Secret |
| 217 | metadata: |
| 218 | name: {{ include "common.fullname" . }}-rproxy-security-config |
| 219 | namespace: {{ include "common.namespace" . }} |
| 220 | type: Opaque |
| 221 | data: |
| 222 | {{ tpl (.Files.Glob "resources/rproxy/config/security/*").AsSecrets . | indent 2 }} |
| 223 | {{ end }} |