X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_lcm%2Fns.py;h=7bd6a92e1cd4a9c7be12fd4ba78f776c52278117;hb=refs%2Fchanges%2F28%2F12028%2F1;hp=901954e6d03a30821439d6742ad6e60c1d20dee9;hpb=78b6e6df5f70557276fa4814327c9237520f9ec2;p=osm%2FLCM.git diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 901954e..7bd6a92 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -5065,7 +5065,17 @@ class NsLcm(LcmBase): actions.add(primitive["name"]) for primitive in kdu_configuration.get("config-primitive", []): actions.add(primitive["name"]) - kdu_action = True if primitive_name in actions else False + kdu = find_in_list( + nsr_deployed["K8s"], + lambda kdu: kdu_name == kdu["kdu-name"] + and kdu["member-vnf-index"] == vnf_index, + ) + kdu_action = ( + True + if primitive_name in actions + and kdu["k8scluster-type"] not in ("helm-chart", "helm-chart-v3") + else False + ) # TODO check if ns is in a proper status if kdu_name and (