Remove unused comments on cluster registration command 08/14708/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 6 Nov 2024 15:37:37 +0000 (16:37 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 6 Nov 2024 15:50:44 +0000 (16:50 +0100)
Change-Id: I24f3fb62f3d72ce1806a37aa615e63e779d487e0
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osmclient/cli_commands/cluster.py

index 147ce70..8231e10 100755 (executable)
@@ -228,24 +228,12 @@ def cluster_register(
     NAME: name of the K8s cluster
     """
     logger.debug("")
-    # kwargs = {k: v for k, v in kwargs.items() if v is not None}
     cluster = {}
     cluster["name"] = name
     with open(creds, "r") as cf:
         cluster["credentials"] = yaml.safe_load(cf.read())
-    # cluster["k8s_version"] = version
     cluster["vim_account"] = vim_account
-    # cluster["nets"] = yaml.safe_load(k8s_nets)
-    # if not (init_jujubundle and init_helm3):
-    #     cluster["deployment_methods"] = {
-    #         "juju-bundle": init_jujubundle,
-    #         "helm-chart-v3": init_helm3,
-    #     }
     if description:
         cluster["description"] = description
-    # if namespace:
-    #     cluster["namespace"] = namespace
-    # if cni:
-    #     cluster["cni"] = yaml.safe_load(cni)
     cluster["bootstrap"] = bootstrap
     ctx.obj.cluster.register(name, cluster)