Skip to content

Commit

Permalink
Adopt controller-runtime breaking changes introduced by PR2122
Browse files Browse the repository at this point in the history
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
  • Loading branch information
RainbowMango committed Jun 28, 2023
1 parent cc1d3dc commit c016ba3
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 c016ba3

Please sign in to comment.