Skip to content

[k8s] Jobs controller on stale context needs better error messages #4268

Open
@romilbhardwaj

Description

@romilbhardwaj

From user:

im kinda confused by this issue when sky jobs launch
File "/Users/xxx/workspace/skypilot/sky/clouds/kubernetes.py", line 577, in validate_region_zone
raise ValueError(
ValueError: Context xyz not found in kubeconfig. Kubernetes only supports context names as regions. Available contexts: ['abc', 'def']
i don't even have xyz in my ~/.kube/config anymore. where is sky pulling this info from?

If the jobs controller was launched on a context that got removed later, users will run into this error. The error message needs to be more helpful.

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is neededk8sKubernetes related items

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions