Skip to content

Commit

Permalink
create another api_client with no kubeconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
chesterli29 committed Dec 26, 2024
1 parent 164f436 commit 0471b4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sky/provision/kubernetes/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,9 @@ def check_pod_config(pod_config: dict) \
str: Error message about why the pod_config is invalid, None otherwise.
"""
errors = []
api_client = kubernetes.api_client()
# This api_client won't be used to send any requests, so there is no need to
# load kubeconfig
api_client = kubernetes.kubernetes.client.ApiClient()

# Used for kubernetes api_client deserialize function, the function will use
# data attr, the detail ref:
Expand Down

0 comments on commit 0471b4c

Please sign in to comment.