Skip to content

Commit 4e32512

Browse files
committed
Unvendor controller-runtime lazy rest mapper
Signed-off-by: Matheus Pimenta <[email protected]>
1 parent 090c3ce commit 4e32512

File tree

2 files changed

+2
-370
lines changed

2 files changed

+2
-370
lines changed

runtime/client/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"k8s.io/apimachinery/pkg/api/meta"
2424
"k8s.io/client-go/rest"
2525
ctrl "sigs.k8s.io/controller-runtime"
26+
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"
2627

2728
"github.com/fluxcd/cli-utils/pkg/flowcontrol"
2829
)
@@ -95,7 +96,7 @@ func NewDynamicRESTMapper(restConfig *rest.Config) (meta.RESTMapper, error) {
9596
return nil, err
9697
}
9798

98-
restMapper, err := NewLazyRESTMapper(restConfig, httpClient)
99+
restMapper, err := apiutil.NewDynamicRESTMapper(restConfig, httpClient)
99100
if err != nil {
100101
return nil, err
101102
}

runtime/client/restmapper.go

Lines changed: 0 additions & 369 deletions
This file was deleted.

0 commit comments

Comments
 (0)