Commit 3494f8e2 authored by k8s-merge-robot's avatar k8s-merge-robot Committed by GitHub

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".
parents 5f2460b5 9915e891
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment