We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb34ba4 commit b93d1beCopy full SHA for b93d1be
src/codeflare_sdk/cluster/auth.py
@@ -162,7 +162,14 @@ def config_check() -> str:
162
global config_path
163
global api_client
164
if config_path == None and api_client == None:
165
- config.load_kube_config()
+ try:
166
+ config.load_kube_config()
167
+ except config.config_exception.ConfigException:
168
169
+ config.load_incluster_config()
170
+ except:
171
+ print("Unable to load config file or in cluster configuration")
172
+
173
if config_path != None and api_client == None:
174
return config_path
175
0 commit comments