Fix inconsistent repository references

Issue-ID: OOM-874

Changes to be committed:
	modified:   aai/charts/aai-babel/templates/deployment.yaml
	modified:   aai/charts/aai-champ/templates/deployment.yaml
	modified:   aai/charts/aai-data-router/templates/deployment.yaml
	modified:   aai/charts/aai-gizmo/templates/deployment.yaml
	modified:   aai/charts/aai-modelloader/templates/deployment.yaml
	modified:   aai/charts/aai-resources/templates/deployment.yaml
	modified:   aai/charts/aai-search-data/templates/deployment.yaml
	modified:   aai/charts/aai-sparky-be/templates/deployment.yaml
	modified:   aai/charts/aai-traversal/templates/deployment.yaml
	modified:   aai/charts/aai-traversal/templates/job.yaml
	modified:   appc/charts/appc-cdt/templates/deployment.yaml
	modified:   appc/templates/statefulset.yaml
	modified:   clamp/charts/mariadb/templates/deployment.yaml
	modified:   clamp/templates/deployment.yaml
	modified:   cli/templates/deployment.yaml
	modified:   common/dgbuilder/templates/deployment.yaml
	modified:   common/mariadb-galera/templates/statefulset.yaml
	modified:   dcaegen2/charts/dcae-bootstrap/templates/job.yaml
	modified:   dcaegen2/charts/dcae-cloudify-manager/templates/deployment.yaml
	modified:   dcaegen2/charts/dcae-healthcheck/templates/deployment.yaml
	modified:   dcaegen2/charts/dcae-redis/templates/statefulset.yaml
	modified:   dmaap/charts/dmaap-bus-controller/templates/deployment.yaml
	modified:   dmaap/charts/dmaap-bus-controller/values.yaml
	modified:   esr/charts/esr-gui/templates/deployment.yaml
	modified:   esr/templates/deployment.yaml
	modified:   msb/charts/kube2msb/templates/deployment.yaml
	modified:   msb/charts/msb-discovery/templates/deployment.yaml
	modified:   msb/charts/msb-eag/templates/deployment.yaml
	modified:   msb/charts/msb-iag/templates/deployment.yaml
	modified:   multicloud/charts/multicloud-ocata/templates/deployment.yaml
	modified:   multicloud/charts/multicloud-vio/templates/deployment.yaml
	modified:   multicloud/charts/multicloud-windriver/templates/deployment.yaml
	modified:   multicloud/templates/deployment.yaml
	modified:   policy/charts/brmsgw/templates/deployment.yaml
	modified:   policy/charts/drools/charts/nexus/templates/deployment.yaml
	modified:   policy/charts/drools/templates/statefulset.yaml
	modified:   policy/charts/mariadb/templates/deployment.yaml
	modified:   policy/charts/pdp/templates/statefulset.yaml
	modified:   policy/templates/deployment.yaml
	modified:   portal/charts/portal-app/templates/deployment.yaml
	modified:   portal/charts/portal-cassandra/templates/deployment.yaml
	modified:   portal/charts/portal-mariadb/templates/deployment.yaml
	modified:   portal/charts/portal-sdk/templates/deployment.yaml
	modified:   portal/charts/portal-widget/templates/deployment.yaml
	modified:   portal/charts/portal-zookeeper/templates/deployment.yaml
	modified:   sdnc/charts/dmaap-listener/templates/deployment.yaml
	modified:   sdnc/charts/sdnc-portal/templates/deployment.yaml
	modified:   sdnc/charts/ueb-listener/templates/deployment.yaml
	modified:   sdnc/templates/statefulset.yaml
	modified:   uui/charts/uui-server/templates/deployment.yaml
	modified:   uui/templates/deployment.yaml
	modified:   vid/charts/mariadb/templates/deployment.yaml
	modified:   vid/templates/deployment.yaml

Change-Id: I00aaa1eff3b870db3b475365eeda3f2e10aef6b9
Signed-off-by: BorislavG <Borislav.Glozman@amdocs.com>
diff --git a/kubernetes/policy/charts/brmsgw/templates/deployment.yaml b/kubernetes/policy/charts/brmsgw/templates/deployment.yaml
index e096902..fabef68 100644
--- a/kubernetes/policy/charts/brmsgw/templates/deployment.yaml
+++ b/kubernetes/policy/charts/brmsgw/templates/deployment.yaml
@@ -51,7 +51,7 @@
         - ./do-start.sh
         - brmsgw
         name: {{ include "common.name" . }}
-        image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
+        image: "{{ include "common.repository" . }}/{{ .Values.image }}"
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
         ports:
         - containerPort: {{ .Values.service.externalPort }}
diff --git a/kubernetes/policy/charts/drools/charts/nexus/templates/deployment.yaml b/kubernetes/policy/charts/drools/charts/nexus/templates/deployment.yaml
index c59ed08..348b364 100644
--- a/kubernetes/policy/charts/drools/charts/nexus/templates/deployment.yaml
+++ b/kubernetes/policy/charts/drools/charts/nexus/templates/deployment.yaml
@@ -40,7 +40,7 @@
           name: nexus-data
       containers:
         - name: {{ include "common.name" . }}
-          image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
+          image: "{{ include "common.repository" . }}/{{ .Values.image }}"
           imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
           ports:
           - containerPort: {{ .Values.service.internalPort }}
diff --git a/kubernetes/policy/charts/drools/templates/statefulset.yaml b/kubernetes/policy/charts/drools/templates/statefulset.yaml
index 5dd49ed..b54b920 100644
--- a/kubernetes/policy/charts/drools/templates/statefulset.yaml
+++ b/kubernetes/policy/charts/drools/templates/statefulset.yaml
@@ -57,7 +57,7 @@
         - "aai.api.simpledemo.openecomp.org"
       containers:
         - name: {{ include "common.name" . }}
-          image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
+          image: "{{ include "common.repository" . }}/{{ .Values.image }}"
           imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
           ports:
           - containerPort: {{ .Values.service.externalPort }}
diff --git a/kubernetes/policy/charts/mariadb/templates/deployment.yaml b/kubernetes/policy/charts/mariadb/templates/deployment.yaml
index 1709af7..6379bc1 100644
--- a/kubernetes/policy/charts/mariadb/templates/deployment.yaml
+++ b/kubernetes/policy/charts/mariadb/templates/deployment.yaml
@@ -32,7 +32,7 @@
     spec:
       containers:
         - name: {{ include "common.name" . }}
-          image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
+          image: "{{ include "common.repository" . }}/{{ .Values.image }}"
           imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
           ports:
           - containerPort: {{ .Values.service.internalPort }}
diff --git a/kubernetes/policy/charts/pdp/templates/statefulset.yaml b/kubernetes/policy/charts/pdp/templates/statefulset.yaml
index 29ded61..7cfc4f0 100644
--- a/kubernetes/policy/charts/pdp/templates/statefulset.yaml
+++ b/kubernetes/policy/charts/pdp/templates/statefulset.yaml
@@ -55,7 +55,7 @@
         - ./do-start.sh
         - pdp
         name: {{ include "common.name" . }}
-        image: {{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}
+        image: "{{ include "common.repository" . }}/{{ .Values.image }}"
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
         ports:
         - containerPort: {{ .Values.service.externalPort }}