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 }} |
Pavel Paroulek | 8aaf2cf | 2018-10-16 15:21:06 +0200 | [diff] [blame] | 137 | {{ tpl (.Files.Glob "resources/config/aaf/bath_config.csv").AsSecrets . | indent 2 }} |
Ravi Geda | 2578aa1 | 2018-11-07 22:37:16 +0000 | [diff] [blame] | 138 | |
| 139 | {{ if .Values.global.installSidecarSecurity }} |
| 140 | --- |
| 141 | apiVersion: v1 |
| 142 | kind: ConfigMap |
| 143 | metadata: |
| 144 | name: {{ include "common.fullname" . }}-aai-policy-configmap |
| 145 | namespace: {{ include "common.namespace" . }} |
| 146 | labels: |
| 147 | app: {{ include "common.name" . }} |
| 148 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 149 | release: {{ .Release.Name }} |
| 150 | heritage: {{ .Release.Service }} |
| 151 | data: |
| 152 | {{ tpl (.Files.Glob "resources/config/auth/aai_policy.json").AsConfig . | indent 2 }} |
| 153 | --- |
| 154 | apiVersion: v1 |
| 155 | kind: ConfigMap |
| 156 | metadata: |
| 157 | name: {{ include "common.fullname" . }}-fproxy-config |
| 158 | namespace: {{ include "common.namespace" . }} |
| 159 | data: |
| 160 | {{ tpl (.Files.Glob "resources/fproxy/config/*").AsConfig . | indent 2 }} |
| 161 | --- |
| 162 | apiVersion: v1 |
| 163 | kind: ConfigMap |
| 164 | metadata: |
| 165 | name: {{ include "common.fullname" . }}-fproxy-log-config |
| 166 | namespace: {{ include "common.namespace" . }} |
| 167 | labels: |
| 168 | app: {{ include "common.name" . }} |
| 169 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 170 | release: {{ .Release.Name }} |
| 171 | heritage: {{ .Release.Service }} |
| 172 | data: |
| 173 | {{ tpl (.Files.Glob "resources/fproxy/config/logback-spring.xml").AsConfig . | indent 2 }} |
| 174 | --- |
| 175 | apiVersion: v1 |
| 176 | kind: Secret |
| 177 | metadata: |
| 178 | name: {{ include "common.fullname" . }}-fproxy-auth-config |
| 179 | namespace: {{ include "common.namespace" . }} |
| 180 | type: Opaque |
| 181 | data: |
| 182 | {{ tpl (.Files.Glob "resources/fproxy/config/auth/*").AsSecrets . | indent 2 }} |
| 183 | --- |
| 184 | apiVersion: v1 |
| 185 | kind: ConfigMap |
| 186 | metadata: |
| 187 | name: {{ include "common.fullname" . }}-rproxy-config |
| 188 | namespace: {{ include "common.namespace" . }} |
| 189 | data: |
| 190 | {{ tpl (.Files.Glob "resources/rproxy/config/*").AsConfig . | indent 2 }} |
| 191 | --- |
| 192 | apiVersion: v1 |
| 193 | kind: ConfigMap |
| 194 | metadata: |
| 195 | name: {{ include "common.fullname" . }}-rproxy-log-config |
| 196 | namespace: {{ include "common.namespace" . }} |
| 197 | labels: |
| 198 | app: {{ include "common.name" . }} |
| 199 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 200 | release: {{ .Release.Name }} |
| 201 | heritage: {{ .Release.Service }} |
| 202 | data: |
| 203 | {{ tpl (.Files.Glob "resources/rproxy/config/logback-spring.xml").AsConfig . | indent 2 }} |
| 204 | --- |
| 205 | apiVersion: v1 |
| 206 | kind: Secret |
| 207 | metadata: |
| 208 | name: {{ include "common.fullname" . }}-rproxy-auth-config |
| 209 | namespace: {{ include "common.namespace" . }} |
| 210 | type: Opaque |
| 211 | data: |
| 212 | {{ tpl (.Files.Glob "resources/rproxy/config/auth/*").AsSecrets . | indent 2 }} |
| 213 | --- |
| 214 | apiVersion: v1 |
| 215 | kind: Secret |
| 216 | metadata: |
| 217 | name: {{ include "common.fullname" . }}-rproxy-security-config |
| 218 | namespace: {{ include "common.namespace" . }} |
| 219 | type: Opaque |
| 220 | data: |
| 221 | {{ tpl (.Files.Glob "resources/rproxy/config/security/*").AsSecrets . | indent 2 }} |
| 222 | {{ end }} |