@@ -492,7 +492,7 @@ def torchx_config(
492
492
to_return ["requirements" ] = requirements
493
493
return to_return
494
494
495
- def from_k8_cluster_object (rc , mcad = True , ingress_domain = None ):
495
+ def from_k8_cluster_object (rc , mcad = True ):
496
496
machine_types = (
497
497
rc ["metadata" ]["labels" ]["orderedinstance" ].split ("_" )
498
498
if "orderedinstance" in rc ["metadata" ]["labels" ]
@@ -532,7 +532,6 @@ def from_k8_cluster_object(rc, mcad=True, ingress_domain=None):
532
532
]["image" ],
533
533
local_interactive = local_interactive ,
534
534
mcad = mcad ,
535
- ingress_domain = ingress_domain ,
536
535
)
537
536
return Cluster (cluster_config )
538
537
@@ -670,7 +669,7 @@ def get_current_namespace(): # pragma: no cover
670
669
return None
671
670
672
671
673
- def get_cluster (cluster_name : str , namespace : str = "default" , ingress_domain = None ):
672
+ def get_cluster (cluster_name : str , namespace : str = "default" ):
674
673
try :
675
674
config_check ()
676
675
api_instance = client .CustomObjectsApi (api_config_handler ())
@@ -686,9 +685,7 @@ def get_cluster(cluster_name: str, namespace: str = "default", ingress_domain=No
686
685
for rc in rcs ["items" ]:
687
686
if rc ["metadata" ]["name" ] == cluster_name :
688
687
mcad = _check_aw_exists (cluster_name , namespace )
689
- return Cluster .from_k8_cluster_object (
690
- rc , mcad = mcad , ingress_domain = ingress_domain
691
- )
688
+ return Cluster .from_k8_cluster_object (rc , mcad = mcad )
692
689
raise FileNotFoundError (
693
690
f"Cluster { cluster_name } is not found in { namespace } namespace"
694
691
)
0 commit comments