Skip to content

Commit

Permalink
manager.NewClientBuilder was removed in favor of cluster.DefaultNewCl…
Browse files Browse the repository at this point in the history
  • Loading branch information
timebertt committed Jun 16, 2021
1 parent 3c64227 commit fce35ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/client/kubernetes/runtime_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/cache"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"
"sigs.k8s.io/controller-runtime/pkg/manager"
"sigs.k8s.io/controller-runtime/pkg/cluster"
)

const (
Expand Down Expand Up @@ -81,7 +81,7 @@ func NewRuntimeClientWithCache(ctx context.Context, config *rest.Config, options
}

func newRuntimeClientWithCache(config *rest.Config, options client.Options, cache cache.Cache, uncachedObjects ...client.Object) (client.Client, error) {
return manager.NewClientBuilder().WithUncached(uncachedObjects...).Build(cache, config, options)
return cluster.DefaultNewClient(cache, config, options, uncachedObjects...)
}

func setClientOptionsDefaults(config *rest.Config, options *client.Options) error {
Expand Down

0 comments on commit fce35ae

Please sign in to comment.