Skip to content

Commit e2bbaac

Browse files
committed
Use NewDynamicRESTMapper instead of NewDisoveryRESTMapper
The latter isn't recommended and was removed by kubernetes-sigs/controller-runtime#2611 in controller-runtime v0.17.0. Signed-off-by: Tom Pantelis <[email protected]>
1 parent ba5392c commit e2bbaac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func main() {
173173
Cache: cache.Options{
174174
DefaultNamespaces: map[string]cache.Config{namespace: {}},
175175
},
176-
MapperProvider: apiutil.NewDiscoveryRESTMapper,
176+
MapperProvider: apiutil.NewDynamicRESTMapper,
177177
})
178178
if err != nil {
179179
log.Error(err, "unable to start manager")

0 commit comments

Comments
 (0)