Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
romilbhardwaj committed Nov 26, 2024
1 parent 0838d95 commit e46e3ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sky/provision/kubernetes/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,8 @@ def get_kube_config_context_namespace(
k8s = kubernetes.kubernetes
ns_path = '/var/run/secrets/kubernetes.io/serviceaccount/namespace'
# If using in-cluster context, get the namespace from the service account
# namespace file.
# namespace file. Uses the same logic as adaptors.kubernetes._load_config()
# to stay consistent with in-cluster config loading.
if (context_name == kubernetes.in_cluster_context_name() or
context_name is None):
if os.path.exists(ns_path):
Expand Down

0 comments on commit e46e3ab

Please sign in to comment.