Provide more verbose empty config error based on the context

Kubernetes-commit: 07dc17ffd9aadd9918511334e13b02dc817828a5
This commit is contained in:
Maciej Szulik 2020-03-03 18:42:19 +01:00 committed by Kubernetes Publisher
parent 72322d0c6d
commit 3eda474fce

View File

@ -30,7 +30,7 @@ import (
var (
ErrNoContext = errors.New("no context chosen")
ErrEmptyConfig = errors.New("no configuration has been provided")
ErrEmptyConfig = errors.New("no configuration has been provided, try setting KUBERNETES_MASTER environment variable")
// message is for consistency with old behavior
ErrEmptyCluster = errors.New("cluster has no server defined")
)