Skip to content

Commit 760c1e3

Browse files
committed
change: use updated auth on get_cluster
1 parent fa88f67 commit 760c1e3

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
@@ -406,8 +406,8 @@ def get_current_namespace(): # pragma: no cover
406406

407407
def get_cluster(cluster_name: str, namespace: str = "default"):
408408
try:
409-
config.load_kube_config()
410-
api_instance = client.CustomObjectsApi()
409+
config_check()
410+
api_instance = client.CustomObjectsApi(api_config_handler())
411411
rcs = api_instance.list_namespaced_custom_object(
412412
group="ray.io",
413413
version="v1alpha1",

0 commit comments

Comments
 (0)