diff --git a/source/httpproxy_test.go b/source/httpproxy_test.go index 3d0785a10..8d33a102a 100644 --- a/source/httpproxy_test.go +++ b/source/httpproxy_test.go @@ -23,7 +23,6 @@ import ( fakeDynamic "k8s.io/client-go/dynamic/fake" "github.com/pkg/errors" - contour "github.com/projectcontour/contour/apis/contour/v1beta1" projectcontour "github.com/projectcontour/contour/apis/projectcontour/v1" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -46,7 +45,6 @@ type HTTPProxySuite struct { func newDynamicKubernetesClient() (*fakeDynamic.FakeDynamicClient, *runtime.Scheme) { s := runtime.NewScheme() - _ = contour.AddToScheme(s) _ = projectcontour.AddToScheme(s) return fakeDynamic.NewSimpleDynamicClient(s), s } diff --git a/source/unstructured_converter.go b/source/unstructured_converter.go index a87194e9f..cb6ab27e6 100644 --- a/source/unstructured_converter.go +++ b/source/unstructured_converter.go @@ -17,7 +17,6 @@ limitations under the License. package source import ( - contour "github.com/projectcontour/contour/apis/contour/v1beta1" projectcontour "github.com/projectcontour/contour/apis/projectcontour/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/client-go/kubernetes/scheme" @@ -36,7 +35,6 @@ func NewUnstructuredConverter() (*UnstructuredConverter, error) { } // Setup converter to understand custom CRD types - _ = contour.AddToScheme(uc.scheme) _ = projectcontour.AddToScheme(uc.scheme) // Add the core types we need