Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
romilbhardwaj committed Aug 19, 2024
1 parent 3eef86b commit 8822dee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sky/provision/kubernetes/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1730,6 +1730,9 @@ def is_inside_kubernetes() -> bool:

def is_kind_cluster() -> bool:
"""Returns whether the caller is running on or in a local KinD cluster"""
k8s_enabled, _ = check_credentials()
if not k8s_enabled:
return False
curr_kube_config = get_current_kube_config_context_name()
if curr_kube_config is None:
# If kubeconfig is not present, we could be inside a KinD cluster
Expand Down

0 comments on commit 8822dee

Please sign in to comment.