diff --git a/docs/cluster/cluster.html b/docs/cluster/cluster.html index dbb6cec5e..21950889a 100644 --- a/docs/cluster/cluster.html +++ b/docs/cluster/cluster.html @@ -487,8 +487,8 @@
codeflare_sdk.cluster.cluster
codeflare_sdk.cluster.cluster
codeflare_sdk.cluster.cluster
def get_cluster(cluster_name: str, namespace: str = "default"):
try:
- config.load_kube_config()
- api_instance = client.CustomObjectsApi()
+ config_check()
+ api_instance = client.CustomObjectsApi(api_config_handler())
rcs = api_instance.list_namespaced_custom_object(
group="ray.io",
version="v1alpha1",
diff --git a/docs/utils/generate_yaml.html b/docs/utils/generate_yaml.html
index ea1e73026..6d94e4c71 100644
--- a/docs/utils/generate_yaml.html
+++ b/docs/utils/generate_yaml.html
@@ -54,7 +54,7 @@ Module codeflare_sdk.utils.generate_yaml
import uuid
from kubernetes import client, config
from .kube_api_helpers import _kube_api_error_handling
-from ..cluster.auth import api_config_handler
+from ..cluster.auth import api_config_handler, config_check
def read_template(template):
@@ -299,7 +299,7 @@ Module codeflare_sdk.utils.generate_yaml
command = command.replace("deployment-name", cluster_name)
try:
- config.load_kube_config()
+ config_check()
api_client = client.CustomObjectsApi(api_config_handler())
ingress = api_client.get_cluster_custom_object(
"config.openshift.io", "v1", "ingresses", "cluster"
@@ -542,7 +542,7 @@ Functions
command = command.replace("deployment-name", cluster_name)
try:
- config.load_kube_config()
+ config_check()
api_client = client.CustomObjectsApi(api_config_handler())
ingress = api_client.get_cluster_custom_object(
"config.openshift.io", "v1", "ingresses", "cluster"