Skip to content

Commit

Permalink
Adopt breaking change of contriller-runtime PR 2122
Browse files Browse the repository at this point in the history
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
  • Loading branch information
RainbowMango committed Jul 15, 2023
1 parent 6f4f3b4 commit 3a07a1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/util/membercluster_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ func NewClusterScaleClientSet(clusterName string, client client.Client) (*Cluste
if clusterConfig != nil {
hpaClient := kubeclientset.NewForConfigOrDie(clusterConfig)
scaleKindResolver := scale.NewDiscoveryScaleKindResolver(hpaClient.Discovery())
mapper, err := apiutil.NewDiscoveryRESTMapper(clusterConfig)
httpClient, err := rest.HTTPClientFor(clusterConfig)
if err != nil {
return nil, err
}
mapper, err := apiutil.NewDiscoveryRESTMapper(clusterConfig, httpClient)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 3a07a1e

Please sign in to comment.