From 169c89e0c403dad3e3e538ae92b46f12971aa20a Mon Sep 17 00:00:00 2001 From: Lukasz Rajewski Date: Fri, 23 Jul 2021 11:32:30 +0200 Subject: Change rb-definition-version identifier rb-definition-version identifier was changed to vf-omdule-model-customization-uuid to enable vf-module model update scenarios Issue-ID: MULTICLOUD-1377 Signed-off-by: Lukasz Rajewski Change-Id: I98908d7f9215c23b9b55710c64b993a6c9f62623 --- .../policy/distribution/forwarding/k8s/K8sArtifactForwarder.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'artifactbroker/plugins/forwarding-plugins') diff --git a/artifactbroker/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java b/artifactbroker/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java index 5f93e28..b63fea0 100644 --- a/artifactbroker/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java +++ b/artifactbroker/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java @@ -113,10 +113,11 @@ public class K8sArtifactForwarder implements ArtifactForwarder { Map map = new LinkedHashMap(); map.put("rb-name", vfModule.getVfModuleModelInvariantUUID()); - map.put("rb-version", vfModule.getVfModuleModelUUID()); + map.put("rb-version", vfModule.getVfModuleModelCustomizationUUID()); map.put("descritpion",vfModule.getVfModuleModelDescription()); Map labelMap = new LinkedHashMap(); - labelMap.put("vnf_customization_uuid",vfModule.getVfModuleModelCustomizationUUID()); + labelMap.put("vf_module_model_uuid",vfModule.getVfModuleModelUUID()); + labelMap.put("vf_module_model_name",vfModule.getVfModuleModelName()); map.put("labels", labelMap); String json = gson.toJson(map); @@ -132,7 +133,7 @@ public class K8sArtifactForwarder implements ArtifactForwarder { private boolean uploadArtifact(VfModuleModel vfModule) { String url = BASE_PATH + "/" + vfModule.getVfModuleModelInvariantUUID() + "/" - + vfModule.getVfModuleModelUUID() + "/content"; + + vfModule.getVfModuleModelCustomizationUUID() + "/content"; HttpPost httpPost = new HttpPost(url); httpPost.addHeader("content-type", "application/x-www-form-urlencoded;charset=utf-8"); -- cgit 1.2.3-korg