Skip to content

Commit f560618

Browse files
committed
fix: Pass http.DefaultClient to NewDynamicRESTMapper
1 parent 28ed692 commit f560618

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/apimeta/mapper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package apimeta
22

33
import (
44
"fmt"
5+
"net/http"
56

67
"k8s.io/apimachinery/pkg/api/meta"
78
"k8s.io/apimachinery/pkg/runtime/schema"
@@ -31,7 +32,7 @@ func IsNotNamespacedError(err error) bool {
3132
}
3233

3334
func NewGroupKindMapper(c *rest.Config) (*GroupKindMapper, error) {
34-
restMapper, err := apiutil.NewDynamicRESTMapper(c)
35+
restMapper, err := apiutil.NewDynamicRESTMapper(c, http.DefaultClient)
3536
if err != nil {
3637
return nil, err
3738
}

0 commit comments

Comments
 (0)