33
34
return cfg, errors.Trace(err)
39
39
// Validate checks the client's fields for invalid values.
40
40
func (cfg Config) Validate() error {
41
41
// TODO(ericsnow) Check cfg.Namespace (if provided)?
47
42
if err := cfg.Remote.Validate(); err != nil {