X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_lcm%2Fvim_sdn.py;h=c81969abd306ede66c2ab035a9cf09544eb2b924;hb=1b782761acbcbbe4666d667a0f04a44f136ef1a3;hp=f0b8f9cf141a794b4b87b648291a0a262fd359f3;hpb=61f61928dbdd78182370a34763c93ad13cdd40f3;p=osm%2FLCM.git diff --git a/osm_lcm/vim_sdn.py b/osm_lcm/vim_sdn.py index f0b8f9c..c81969a 100644 --- a/osm_lcm/vim_sdn.py +++ b/osm_lcm/vim_sdn.py @@ -1155,7 +1155,14 @@ class K8sClusterLcm(LcmBase): task2name = {} init_target = deep_get(db_k8scluster, ("_admin", "init")) step = "Launching k8scluster init tasks" - for task_name in ("helm-chart", "juju-bundle", "helm-chart-v3"): + + k8s_deploy_methods = db_k8scluster.get("deployment_methods", {}) + # for backwards compatibility and all-false case + if not any(k8s_deploy_methods.values()): + k8s_deploy_methods = {"helm-chart": True, "juju-bundle": True, "helm-chart-v3": True} + deploy_methods = tuple(filter(k8s_deploy_methods.get, k8s_deploy_methods)) + + for task_name in deploy_methods: if init_target and task_name not in init_target: continue task = asyncio.ensure_future(