We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16d23d7 commit 77a82e2Copy full SHA for 77a82e2
src/codeflare_sdk/cluster/auth.py
@@ -22,6 +22,7 @@
22
import abc
23
from kubernetes import client, config
24
import os
25
+from ..utils.kube_api_helpers import _kube_api_error_handling
26
27
global api_client
28
api_client = None
@@ -168,12 +169,12 @@ def config_check() -> str:
168
169
try:
170
config.load_kube_config()
171
except Exception as e: # pragma: no cover
- print(e)
172
+ _kube_api_error_handling(e)
173
elif "KUBERNETES_PORT" in os.environ:
174
175
config.load_incluster_config()
176
177
178
else:
179
raise PermissionError(
180
"Action not permitted, have you put in correct/up-to-date auth credentials?"
0 commit comments