Save k8s definition using vfmodule model ids 31/99631/1
authorEric Multanen <eric.w.multanen@intel.com>
Fri, 13 Dec 2019 23:28:14 +0000 (15:28 -0800)
committerEric Multanen <eric.w.multanen@intel.com>
Fri, 13 Dec 2019 23:28:14 +0000 (15:28 -0800)
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 <eric.w.multanen@intel.com>
artifactbroker/model/src/main/java/org/onap/policy/distribution/model/VfModuleModel.java
artifactbroker/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/k8s/K8sArtifactForwarder.java

index 220dc57..1f0762c 100644 (file)
@@ -50,6 +50,14 @@ public class VfModuleModel {
         return vfModuleModelVersion;
     }
 
+    public String getVfModuleModelInvariantUUID() {
+        return vfModuleModelInvariantUUID;
+    }
+
+    public String getVfModuleModelUUID() {
+        return vfModuleModelUUID;
+    }
+
     public String getVfModuleModelCustomizationUUID() {
         return vfModuleModelCustomizationUUID;
     }
index 894f0c1..52c0617 100644 (file)
@@ -111,8 +111,8 @@ public class K8sArtifactForwarder implements ArtifactForwarder {
                 .create();
 
             Map<String, Object> map = new LinkedHashMap<String, Object>();
-            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<String, String> labelMap = new LinkedHashMap<String, String>();
             labelMap.put("vnf_customization_uuid",vfModule.getVfModuleModelCustomizationUUID());

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use