X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fdep.git;a=blobdiff_plain;f=smo-install%2Foran_oom%2Fpolicymanagementservice%2Ftemplates%2Fconfigmap.yaml;fp=smo-install%2Foran_oom%2Fpolicymanagementservice%2Ftemplates%2Fconfigmap.yaml;h=20271d7254637be91f258d44688a412b2f1bb377;hp=9c91f7d02483459df2bf64f1019d177d4d69a836;hb=918108f729c368db61fe904024129f21269e19b7;hpb=c9ace66e2b4635918c4c4c473dfc7bcbeb41b7ae diff --git a/smo-install/oran_oom/policymanagementservice/templates/configmap.yaml b/smo-install/oran_oom/policymanagementservice/templates/configmap.yaml index 9c91f7d0..20271d72 100644 --- a/smo-install/oran_oom/policymanagementservice/templates/configmap.yaml +++ b/smo-install/oran_oom/policymanagementservice/templates/configmap.yaml @@ -14,29 +14,11 @@ # limitations under the License. # ################################################################################ - -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "common.name.policymanagementservice" . }}-configmap-config - namespace: {{ include "common.namespace.nonrtric" . }} - labels: - app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.policymanagementservice" . }} - chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -data: -{{ tpl (.Files.Glob "resources/config/*").AsConfig . | indent 2 }} +{{ include "common.applicationConfigmap" . }} --- apiVersion: v1 kind: ConfigMap -metadata: - name: {{ include "common.name.policymanagementservice" . }}-configmap-data - namespace: {{ include "common.namespace.nonrtric" . }} - labels: - app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.policymanagementservice" . }} - chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} +metadata: {{ include "common.resourceMetadata" (dict "suffix" "data-configmap" "dot" . ) | nindent 2 }} data: -{{ tpl (.Files.Glob "resources/data/*").AsConfig . | indent 2 }} \ No newline at end of file + application_configuration.json: | + {{- .Values.config | toRawJson | nindent 4 }}