Skip to content

The error for "unset $KUBECONFIG" is needlessly cryptic #500

Open

Description

Forgetting to set $KUBECONFIG results in a following error:

❯ tk diff envs/name
connecting to Kubernetes: finding usable context: expected clusters to be of type `[]map[string]interface{}`, but got `<nil>` instead

This is imho a pretty common mistake among newcomers so it would make sense to handle unset $KUBECONFIG as a separate error.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

  • Status

    In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions