AETHER-1260 Better support of helm-kustomize for omec-control-plane chart

Change-Id: I24c22cbacca60e3b6c5c3bca7ec76c9c987c2b56
diff --git a/omec/omec-control-plane/templates/configmap-pcrf.yaml b/omec/omec-control-plane/templates/configmap-pcrf.yaml
index 9400601..dff2095 100644
--- a/omec/omec-control-plane/templates/configmap-pcrf.yaml
+++ b/omec/omec-control-plane/templates/configmap-pcrf.yaml
@@ -9,6 +9,7 @@
 */}}
 
 {{- if .Values.config.pcrf.deploy }}
+{{- if not .Values.config.useExistingConfigMap }}
 {{- $pcrfJson := index .Values.config.pcrf.cfgFiles "pcrf.json" }}
 {{- $pcrfJsonCommon := index $pcrfJson "common" }}
 {{- $pcrfJsonHss := index $pcrfJson "pcrf" }}
@@ -100,6 +101,7 @@
   {{ $key }}: |-
 {{ toPrettyJson $value | indent 4 }}
 {{- end }}
+{{- end }}
 ---
 apiVersion: v1
 kind: ConfigMap