Skip to content

Commit 3698fb3

Browse files
committed
CARRY b0ce65d: Generify fake clientsets [reduced to a single new comment here]
On-behalf-of: @SAP [email protected]
1 parent bdeed96 commit 3698fb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

third_party/k8s.io/client-go/testing/actions.go

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ import (
3232
"k8s.io/apimachinery/pkg/types"
3333
)
3434

35+
// All NewRoot... functions return non-namespaced actions, and are equivalent to
36+
// calling the corresponding New... function with an empty namespace.
37+
// This is assumed by the fake client generator.
38+
3539
func NewRootGetAction(resource schema.GroupVersionResource, clusterPath logicalcluster.Path, name string) GetActionImpl {
3640
return NewRootGetActionWithOptions(resource, clusterPath, name, metav1.GetOptions{})
3741
}

0 commit comments

Comments
 (0)