Skip to content

Commit

Permalink
fix: aggregate apiserver http method to get
Browse files Browse the repository at this point in the history
Signed-off-by: 圣朋 <[email protected]>
  • Loading branch information
spiritNO1 committed Aug 29, 2024
1 parent 12f881b commit 48b03df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/registry/cluster/storage/aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ func requestWithResourceNameHandlerFunc(
klog.Errorf("failed to get impersonateToken for cluster %s: %v", cluster.Name, err)
return
}
statusCode, err := doClusterRequest(req.Method, requestURLStr(location, proxyRequestInfo), transport, requester, impersonateToken)
statusCode, err := doClusterRequest(http.MethodGet, requestURLStr(location, proxyRequestInfo), transport,
requester, impersonateToken)
if err != nil {
klog.Errorf("failed to do request for cluster %s: %v", cluster.Name, err)
return
Expand Down

0 comments on commit 48b03df

Please sign in to comment.