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