From bfebfc02da4ab67880be60ca0d9bf78f5cc5e6ff Mon Sep 17 00:00:00 2001 From: romeromonser Date: Fri, 28 May 2021 10:51:35 +0200 Subject: [PATCH] Bugfix 1550: Setting a custom release name for Helm based kdus Change-Id: I63fed6ca98633a8d7bdedec56d4db661cef5dc63 Signed-off-by: romeromonser --- osm_nbi/instance_topics.py | 5 +++++ osm_nbi/validation.py | 1 + 2 files changed, 6 insertions(+) diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index 1486133..ebef36e 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -710,9 +710,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 153086b..2fc399f 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -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, -- 2.25.1