fix some err message

This commit is contained in:
zhengjiajin 2017-06-02 18:33:05 +08:00
parent b9e8d2aee6
commit 6bc2d4257b

View File

@ -417,7 +417,7 @@ func (s *ServiceController) reconcileService(key string) reconciliationStatus {
namespace, name, err := cache.SplitMetaNamespaceKey(key)
if err != nil {
runtime.HandleError(fmt.Errorf("Invalid key %q recieved, unable to split key to namespace and name, err: %v", key, err))
runtime.HandleError(fmt.Errorf("Invalid key %q received, unable to split key to namespace and name, err: %v", key, err))
return statusNonRecoverableError
}
@ -440,7 +440,7 @@ func (s *ServiceController) reconcileService(key string) reconciliationStatus {
}
fedService, ok := fedServiceObj.(*v1.Service)
if err != nil || !ok {
runtime.HandleError(fmt.Errorf("Unknown obj recieved from store: %#v, %v", fedServiceObj, err))
runtime.HandleError(fmt.Errorf("Unknown obj received from store: %#v, %v", fedServiceObj, err))
return statusNonRecoverableError
}