client-go: fix error message spelling in rest config

Kubernetes-commit: f0ca5c1376f28c2a6c2aebeab4b83ceb35a78817
This commit is contained in:
Yann Hodique 2018-07-16 16:00:03 -07:00 committed by Kubernetes Publisher
parent 26fe45c84c
commit 334ce435af

View File

@ -220,7 +220,7 @@ func RESTClientFor(config *Config) (*RESTClient, error) {
// the config.Version to be empty.
func UnversionedRESTClientFor(config *Config) (*RESTClient, error) {
if config.NegotiatedSerializer == nil {
return nil, fmt.Errorf("NeogitatedSerializer is required when initializing a RESTClient")
return nil, fmt.Errorf("NegotiatedSerializer is required when initializing a RESTClient")
}
baseURL, versionedAPIPath, err := defaultServerUrlFor(config)