Skip to content

Commit 5107aed

Browse files
committed
change: use updated auth on get_cluster
1 parent 380f4d3 commit 5107aed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codeflare_sdk/cluster/cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ def get_current_namespace(): # pragma: no cover
411411

412412
def get_cluster(cluster_name: str, namespace: str = "default"):
413413
try:
414-
config.load_kube_config()
415-
api_instance = client.CustomObjectsApi()
414+
config_check()
415+
api_instance = client.CustomObjectsApi(api_config_handler())
416416
rcs = api_instance.list_namespaced_custom_object(
417417
group="ray.io",
418418
version="v1alpha1",

0 commit comments

Comments
 (0)