From: romeromonser Date: Fri, 28 May 2021 08:59:05 +0000 (+0200) Subject: Bugfix 1550: Setting a custom release name for Helm based kdus X-Git-Tag: v9.1.2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=64b8a3520857ad86f0998c300be58f5d38ee84c4;hp=2663b79f36927a1bced92e9aeefacdf5e9a7b916;p=osm%2FNBI.git Bugfix 1550: Setting a custom release name for Helm based kdus Change-Id: I0fa35bc062f19ab838072a9ee267bbc2ba4b3e48 Signed-off-by: romeromonser --- diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index 84ba177..da0ba9a 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -522,9 +522,14 @@ class NsrTopic(BaseTopic): 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 diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 5b6cce1..de8f913 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -261,6 +261,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,