[k8s] sky check k8s
fails when current context is not available, even if that context is not in allowed_contexts
#4449
Labels
~/.sky/config.yaml:
current context:
kind-skypilot cluster is up, but gke-dev cluster is down.
Expected behavior:
When
kubernetes.allowed_contexts
is set in ~/.sky/config.yaml,sky check k8s
should check if any of these contexts are available. (or, maybe if they are all available)In this example, it should succeed since kind-skypilot is available.
Actual behavior:
sky check k8s
will succeed if and only if the kubernetes current context (given bykubectl config current-context
) is available, even if that context is not present in the list of allowed_contexts and all allowed_contexts are available.In this example, it will fail since gke-dev is not available.
Version & Commit info:
sky -v
: skypilot, version 1.0.0-dev0sky -c
: skypilot, commit a63eaf5-dirtyThe text was updated successfully, but these errors were encountered: