Skip to content

Commit 77de589

Browse files
authored
Merge pull request #930 from alvaroaleman/export-default-new-client
✨ Manager: Export defaultNewClient
2 parents 1c83ff6 + 32b4434 commit 77de589

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/manager/manager.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ func New(config *rest.Config, options Options) (Manager, error) {
343343
}, nil
344344
}
345345

346-
// defaultNewClient creates the default caching client
347-
func defaultNewClient(cache cache.Cache, config *rest.Config, options client.Options) (client.Client, error) {
346+
// DefaultNewClient creates the default caching client
347+
func DefaultNewClient(cache cache.Cache, config *rest.Config, options client.Options) (client.Client, error) {
348348
// Create the Client for Write operations.
349349
c, err := client.New(config, options)
350350
if err != nil {
@@ -389,7 +389,7 @@ func setOptionsDefaults(options Options) Options {
389389

390390
// Allow newClient to be mocked
391391
if options.NewClient == nil {
392-
options.NewClient = defaultNewClient
392+
options.NewClient = DefaultNewClient
393393
}
394394

395395
// Allow newCache to be mocked

0 commit comments

Comments
 (0)