From 0f0175254dc2ea1d3e995f7abe00552f36d7bf53 Mon Sep 17 00:00:00 2001 From: Eric Multanen Date: Fri, 13 Dec 2019 15:28:14 -0800 Subject: Save k8s definition using vfmodule model ids Use the vfmodule model invariant id as the resource bundle definition name and the vfmodule model version as the resource bundle definition version when saving the resource bundle. Change-Id: Iaa3fcbf72f40ea1d4df5c46f7bb6d0c797a9e7e1 Issue-ID: MULTICLOUD-836 Signed-off-by: Eric Multanen --- .../onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 894f0c1..52c0617 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 @@ -111,8 +111,8 @@ public class K8sArtifactForwarder implements ArtifactForwarder { .create(); Map map = new LinkedHashMap(); - map.put("rb-name", vfModule.getVfModuleModelName()); - map.put("rb-version", vfModule.getVfModuleModelVersion()); + map.put("rb-name", vfModule.getVfModuleModelInvariantUUID()); + map.put("rb-version", vfModule.getVfModuleModelUUID()); map.put("descritpion",vfModule.getVfModuleModelDescription()); Map labelMap = new LinkedHashMap(); labelMap.put("vnf_customization_uuid",vfModule.getVfModuleModelCustomizationUUID()); -- cgit 1.2.3-korg