X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-xapps%2F90-xApps%2Fhelm%2Fxapp-std%2Ftemplates%2Fappconfig.yaml;h=ab8c294030ae9ef7ef61cb50f5c2b0b3cb1ad3b0;hb=b0d610ef0ba334c963cac6e2f3423657fda803dd;hp=fc6e62291fe178db2f5ab18ef452e67a40c6f302;hpb=62b17b9e2ec2a91cc7d84f73821017c7c6b773a8;p=it%2Fdep.git diff --git a/ric-xapps/90-xApps/helm/xapp-std/templates/appconfig.yaml b/ric-xapps/90-xApps/helm/xapp-std/templates/appconfig.yaml index fc6e6229..ab8c2940 100644 --- a/ric-xapps/90-xApps/helm/xapp-std/templates/appconfig.yaml +++ b/ric-xapps/90-xApps/helm/xapp-std/templates/appconfig.yaml @@ -1,14 +1,32 @@ -# -# ================================================================================== -# Copyright (c) 2019 Nokia -# ================================================================================== -# +################################################################################ +# Copyright (c) 2019 AT&T Intellectual Property. # +# Copyright (c) 2019 Nokia. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################' -{{ if (eq .Values.ricapp.appconfig.override "") }} apiVersion: v1 kind: ConfigMap metadata: - name: {{ if .Values.ricapp.appconfig.override }}{{ .Values.ricapp.appconfig.override }}{{ else }}{{ .Release.Name }}-appconfig{{ end }} + name: {{ include "ricxapp.configmapname" . }}-appconfig data: -{{ (.Files.Glob "config/*").AsConfig | indent 2 }} -{{ end }} +{{- $dbaasservice := .Values.ricplt.dbaasService | quote -}} +{{- $pltingressurl := .Values.ricplt.pltIngressUrl | quote -}} +{{- $xappingressurl := .Values.ricplt.xappIngressUrl | quote -}} +{{- $appmgrrmrservice := .Values.ricplt.appmgrRMRService | quote -}} +{{- $e2mgrrmrservice := .Values.ricplt.e2mgrRMRService | quote -}} +{{- $e2termrmrservice := .Values.ricplt.e2termRMRService | quote -}} +{{- $rtmgrrmrservice := .Values.ricplt.rtmgrRMRService | quote -}} +{{- $a1mediatorrmrservice := .Values.ricplt.a1mediatorRMRService | quote -}} + +{{- (.Files.Glob "config/*").AsConfig | replace "__DBAAS_SERVICE__" $dbaasservice | replace "__PLT_INGRESS_URL__" $pltingressurl | replace "__XAPP_INGRESS_URL__" $xappingressurl | replace "__APPMGR_RMR_SERVICE__" $appmgrrmrservice | replace "__E2MGR_RMR_SERVICE__" $e2mgrrmrservice | replace "__E2TERM_RMR_SERVICE__" $e2termrmrservice | replace "__RTMGR_RMR_SERVICE__" $rtmgrrmrservice | replace "__A1MEDIATOR_RMR_SERVICE__" $a1mediatorrmrservice | nindent 2 }}