X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Fe2term%2Ftemplates%2Fenv.yaml;h=3d11225161e78b87a9b7d7f2bac9c526cbd550f0;hb=a9d4c42755f61abbade2599cd0bab4c9743cf41b;hp=aa2ae9481339e0940e25ea844e864353f48b45ba;hpb=38dc857062b14145f5b9db89d10eba0ae5b90d11;p=ric-plt%2Fric-dep.git diff --git a/helm/e2term/templates/env.yaml b/helm/e2term/templates/env.yaml index aa2ae94..3d11225 100644 --- a/helm/e2term/templates/env.yaml +++ b/helm/e2term/templates/env.yaml @@ -14,20 +14,24 @@ # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ +{{- $topCtx := . }} +{{- range keys .Values.e2term }} +{{- $key := . }} +{{- with index $topCtx.Values.e2term . }} +--- apiVersion: v1 kind: ConfigMap metadata: - name: {{ include "common.configmapname.e2term" . }}-env + name: {{ include "common.configmapname.e2term" $topCtx }}-env-{{ $key }} data: - DBAAS_SERVICE_HOST: {{ include "common.servicename.dbaas.tcp" . | quote }} - DBAAS_SERVICE_PORT: {{ include "common.serviceport.dbaas.tcp" . | quote }} - DBAAS_PORT_6379_TCP_ADDR: {{ include "common.servicename.dbaas.tcp" . | quote }} - DBAAS_PORT_6379_TCP_PORT: {{ include "common.serviceport.dbaas.tcp" . | quote }} - RMR_SRC_ID: {{ include "common.servicename.e2term.rmr" . }}.{{ include "common.namespace.platform" . }} - RMR_RTG_SVC: {{ include "common.serviceport.e2term.rmr.route" . | quote }} + RMR_SRC_ID: {{ include "common.servicename.e2term.rmr" $topCtx }}-{{ $key }}.{{ include "common.namespace.platform" $topCtx }} + RMR_RTG_SVC: {{ include "common.serviceport.e2term.rmr.route" $topCtx | quote }} RMR_SEED_RT: "router.txt" RMR_VCTL_FILE: "/tmp/rmr_verbose" - sctp: {{ include "common.serviceport.e2term.sctp" . | quote }} - nano: {{ include "common.serviceport.e2term.rmr.data" . | quote }} - print: "{{ .Values.e2term.env.print }}" - volume: "{{ .Values.e2term.env.messagecollectorfile }}" + sctp: {{ include "common.serviceport.e2term.sctp" $topCtx | quote }} + nano: {{ include "common.serviceport.e2term.rmr.data" $topCtx | quote }} + print: "{{ .env.print }}" + volume: "{{ .env.messagecollectorfile }}" + +{{- end }} +{{- end }}