Skip to content

Commit 371e7b1

Browse files
aaronschweigturkenh
authored andcommitted
chore: give the exported function a comment
Signed-off-by: aaronschweig <[email protected]>
1 parent f3f63fb commit 371e7b1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/cache/defaulting_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ func TestDefaultOpts(t *testing.T) {
427427
}
428428

429429
// We cannot reference kcp.NewInformerWithClusterIndexes due to import cycle.
430-
defaulted.NewInformerFunc = nil
430+
defaulted.NewInformer = nil
431431

432432
if diff := tc.verification(defaulted); diff != "" {
433433
t.Errorf("expected config differs from actual: %s", diff)

pkg/kcp/wrappers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ func NewClusterAwareHTTPClient(config *rest.Config) (*http.Client, error) {
161161
return httpClient, nil
162162
}
163163

164+
// NewClusterAwareClientWithWatch returns a new WithWatch with a cluster aware client underneath.
164165
func NewClusterAwareClientWithWatch(config *rest.Config, options client.Options) (client.WithWatch, error) {
165166
opts, err := applyClientOptions(config, options)
166167
if err != nil {

0 commit comments

Comments
 (0)