Skip to content

Commit

Permalink
Use NewDynamicRESTMapper instead of NewDisoveryRESTMapper
Browse files Browse the repository at this point in the history
The latter isn't remommended and was removed by
kubernetes-sigs/controller-runtime#2611
in controller-runtime v0.17.0.

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
  • Loading branch information
tpantelis committed Jan 24, 2024
1 parent bc722d3 commit 60496d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -173,7 +173,7 @@ func main() {
Cache: cache.Options{
DefaultNamespaces: map[string]cache.Config{namespace: {}},
},
MapperProvider: apiutil.NewDiscoveryRESTMapper,
MapperProvider: apiutil.NewDynamicRESTMapper,
})
if err != nil {
log.Error(err, "unable to start manager")
Expand Down

0 comments on commit 60496d0

Please sign in to comment.