Skip to content

Commit

Permalink
Remove DynamicRestMapper operator-sdk implementation and use controll…
Browse files Browse the repository at this point in the history
…er-runtime one

Since operator-sdk v0.14.0 usage of DynamicRestMapper implementation done by the
operator-sdk is removed and it is now provided by controller-runtime and
configured and set by the operator-sdk
operator-framework/operator-sdk#2309
  • Loading branch information
miguelsorianod committed Feb 20, 2020
1 parent 18957db commit e5846b6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/operator-framework/operator-sdk/pkg/leader"
"github.com/operator-framework/operator-sdk/pkg/log/zap"
"github.com/operator-framework/operator-sdk/pkg/metrics"
"github.com/operator-framework/operator-sdk/pkg/restmapper"
sdkVersion "github.com/operator-framework/operator-sdk/version"
"github.com/spf13/pflag"
v1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -95,7 +94,6 @@ func main() {
// Create a new Cmd to provide shared dependencies and start components
mgr, err := manager.New(cfg, manager.Options{
Namespace: namespace,
MapperProvider: restmapper.NewDynamicRESTMapper,
MetricsBindAddress: fmt.Sprintf("%s:%d", metricsHost, metricsPort),
})
if err != nil {
Expand Down

0 comments on commit e5846b6

Please sign in to comment.