Merge pull request #28581 from lixiaobing10051267/masternotesorder

Automatic merge from submit-queue

The notes are inconsistent with the code

 In file "pkg/client/cache/store.go, the notes of line 102 "name and namespace" is inconsistent with line 103 "return parts[0], parts[1], nil", because parts[0] is namespace, and parts[1] is name, It is easy to be confused, and better to modify the notes to "namespace and name".
This commit is contained in:
k8s-merge-robot
2016-07-07 16:22:50 -07:00
committed by GitHub

2
pkg/client/cache/store.go vendored Normal file → Executable file
View File

@@ -99,7 +99,7 @@ func SplitMetaNamespaceKey(key string) (namespace, name string, err error) {
// name only, no namespace
return "", parts[0], nil
case 2:
// name and namespace
// namespace and name
return parts[0], parts[1], nil
}