Bugfix 1550: Setting a custom release name for Helm based kdus 04/10904/3 v10.0.0
authorromeromonser <garomero@indra.es>
Fri, 28 May 2021 09:44:53 +0000 (11:44 +0200)
committerguzman <jmguzman@whitestack.com>
Thu, 3 Jun 2021 14:41:34 +0000 (16:41 +0200)
Change-Id: I4270c35078de09f2214e8fdb97ff0a9c039cf154
Signed-off-by: romeromonser <garomero@indra.es>
osm_nbi/instance_topics.py
osm_nbi/validation.py

index 1486133..dc85a50 100644 (file)
@@ -709,10 +709,14 @@ class NsrTopic(BaseTopic):
             kdu_model = kdu_params.get("kdu_model") if kdu_params else None
             if kdu_params and kdu_params.get("k8s-namespace"):
                 kdu_k8s_namespace = kdu_params["k8s-namespace"]
+            kdu_deployment_name = ""
+            if kdu_params and kdu_params.get("kdu-deployment-name"):
+                kdu_deployment_name = kdu_params.get("kdu-deployment-name")
 
             kdur = {
                 "additionalParams": additional_params,
                 "k8s-namespace": kdu_k8s_namespace,
+                "kdu-deployment-name": kdu_deployment_name,
                 "kdu-name": kdu["name"],
                 # TODO      "name": ""     Name of the VDU in the VIM
                 "ip-address": None,  # mgmt-interface filled by LCM
index 153086b..2fc399f 100644 (file)
@@ -305,6 +305,7 @@ additional_params_for_vnf = {
                         "kdu_model": name_schema,
                         "k8s-namespace": name_schema,
                         "config-units": integer1_schema,  # number of configuration units of this knf, by default 1
+                        "kdu-deployment-name": name_schema,
                     },
                     "required": ["kdu_name"],
                     "minProperties": 2,