mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-14 13:33:22 +00:00
Provide more verbose empty config error based on the context
Kubernetes-commit: 07dc17ffd9aadd9918511334e13b02dc817828a5
This commit is contained in:
parent
72322d0c6d
commit
3eda474fce
@ -30,7 +30,7 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
ErrNoContext = errors.New("no context chosen")
|
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
|
// message is for consistency with old behavior
|
||||||
ErrEmptyCluster = errors.New("cluster has no server defined")
|
ErrEmptyCluster = errors.New("cluster has no server defined")
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user