File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,14 @@ import (
24
24
"golang.org/x/xerrors"
25
25
"k8s.io/apimachinery/pkg/api/meta"
26
26
"k8s.io/apimachinery/pkg/runtime/schema"
27
- utilruntime "k8s.io/apimachinery/pkg/util/runtime"
28
27
"k8s.io/client-go/discovery"
29
28
"k8s.io/client-go/rest"
30
29
"k8s.io/client-go/restmapper"
30
+ logf "sigs.k8s.io/controller-runtime/pkg/internal/log"
31
31
)
32
32
33
+ var log = logf .RuntimeLog .WithName ("restmapper" )
34
+
33
35
// ErrRateLimited is returned by a dynamicRESTMapper method if the number
34
36
// of API calls has exceeded a limit within a certain time period.
35
37
type ErrRateLimited struct {
@@ -143,7 +145,7 @@ func (drm *dynamicRESTMapper) reload() error {
143
145
return err
144
146
}
145
147
if err := drm .setStaticMapper (); err != nil {
146
- utilruntime . HandleError ( err )
148
+ log . V ( 1 ). Info ( "reload static RESTMapper" , "error" , err )
147
149
}
148
150
return nil
149
151
}
You can’t perform that action at this time.
0 commit comments