Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message when kubeconfig contains no clusters / contexts…
… / users. When `kubectl config delete-context` and `kubectl config delete-cluster` delete the last context / cluser / user, they set these fields to `null` instead of empty lists. Before this change, these would cause deserialization itself to fail because `null` cannot be deserialized into a `Vec`. It's better that the test fails with the "couldn't find ..." error message instead.
- Loading branch information