X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fdep.git;a=blobdiff_plain;f=smo-install%2Foran_oom%2Fnonrtric-common%2Ftemplates%2F_configmap.tpl;fp=smo-install%2Foran_oom%2Fnonrtric-common%2Ftemplates%2F_common.tpl;h=3eb249520e4b22a72ff68424e8bf741b17e24a68;hp=af3226f7e3fed98d383954e405c27798d68dcae3;hb=918108f729c368db61fe904024129f21269e19b7;hpb=c9ace66e2b4635918c4c4c473dfc7bcbeb41b7ae diff --git a/smo-install/oran_oom/nonrtric-common/templates/_common.tpl b/smo-install/oran_oom/nonrtric-common/templates/_configmap.tpl similarity index 72% rename from smo-install/oran_oom/nonrtric-common/templates/_common.tpl rename to smo-install/oran_oom/nonrtric-common/templates/_configmap.tpl index af3226f7..3eb24952 100644 --- a/smo-install/oran_oom/nonrtric-common/templates/_common.tpl +++ b/smo-install/oran_oom/nonrtric-common/templates/_configmap.tpl @@ -1,5 +1,6 @@ +{{/* ################################################################################ -# Copyright (c) 2020 Nordix Foundation. # +# Copyright (c) 2024 NYCU WINLab. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. # @@ -13,7 +14,17 @@ # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ +*/}} -{{- define "common.namespace.nonrtric" -}} - {{- default .Release.Namespace .Values.nsPrefix -}} -{{- end -}} +{{- define "common.applicationConfigmap" -}} +{{- $dot := default . .dot -}} +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "common.name" $dot }}-application-configmap + namespace: {{ include "common.namespace" . }} + labels: {{- include "common.labels" . | nindent 4 }} +data: + application.yml: | + {{- toYaml .Values.application | nindent 4 }} +{{ end -}}