Skip to content

Commit

Permalink
Merge pull request #437 from danehans/bz_1866568
Browse files Browse the repository at this point in the history
Bug 1866568: Removes RestMapper since DynamicRestMapper is now the pkg default
  • Loading branch information
openshift-merge-robot authored Aug 18, 2020
2 parents 8aa1ce2 + 179dcbc commit 4c59487
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 117 deletions.
6 changes: 2 additions & 4 deletions pkg/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
dnscontroller "github.com/openshift/cluster-ingress-operator/pkg/operator/controller/dns"
ingresscontroller "github.com/openshift/cluster-ingress-operator/pkg/operator/controller/ingress"
statuscontroller "github.com/openshift/cluster-ingress-operator/pkg/operator/controller/status"
operatorutil "github.com/openshift/cluster-ingress-operator/pkg/util"

operatorv1 "github.com/openshift/api/operator/v1"

Expand Down Expand Up @@ -57,9 +56,8 @@ func New(config operatorconfig.Config, kubeConfig *rest.Config) (*Operator, erro
scheme := operatorclient.GetScheme()
// Set up an operator manager for the operator namespace.
mgr, err := manager.New(kubeConfig, manager.Options{
Namespace: config.Namespace,
Scheme: scheme,
MapperProvider: operatorutil.NewDynamicRESTMapper,
Namespace: config.Namespace,
Scheme: scheme,
NewCache: cache.MultiNamespacedCacheBuilder([]string{
config.Namespace,
manifests.DefaultOperandNamespace,
Expand Down
113 changes: 0 additions & 113 deletions pkg/util/restmapper.go

This file was deleted.

0 comments on commit 4c59487

Please sign in to comment.