diff --git a/executor/api/metric/client_test.go b/executor/api/metric/client_test.go index 9fcb16b6b4..16c3286524 100644 --- a/executor/api/metric/client_test.go +++ b/executor/api/metric/client_test.go @@ -4,7 +4,6 @@ import ( . "github.com/onsi/gomega" v1 "github.com/seldonio/seldon-core/operator/apis/machinelearning.seldon.io/v1" v12 "k8s.io/api/core/v1" - v1meta "k8s.io/apimachinery/pkg/apis/meta/v1" "testing" ) @@ -22,7 +21,7 @@ func TestNewFromtMeta(t *testing.T) { }, ComponentSpecs: []*v1.SeldonPodSpec{ &v1.SeldonPodSpec{ - Metadata: v1meta.ObjectMeta{}, + Metadata: v1.ObjectMeta{}, Spec: v12.PodSpec{ Containers: []v12.Container{ v12.Container{ diff --git a/executor/api/rest/client_test.go b/executor/api/rest/client_test.go index 3f3bf8e25b..372a64858f 100644 --- a/executor/api/rest/client_test.go +++ b/executor/api/rest/client_test.go @@ -23,7 +23,6 @@ import ( "github.com/seldonio/seldon-core/executor/k8s" v1 "github.com/seldonio/seldon-core/operator/apis/machinelearning.seldon.io/v1" v12 "k8s.io/api/core/v1" - v1meta "k8s.io/apimachinery/pkg/apis/meta/v1" ) const ( @@ -228,7 +227,7 @@ func TestClientMetrics(t *testing.T) { Annotations: map[string]string{}, ComponentSpecs: []*v1.SeldonPodSpec{ &v1.SeldonPodSpec{ - Metadata: v1meta.ObjectMeta{}, + Metadata: v1.ObjectMeta{}, Spec: v12.PodSpec{ Containers: []v12.Container{ v12.Container{ diff --git a/executor/go.mod b/executor/go.mod index fd27e5d70c..d9c061421f 100644 --- a/executor/go.mod +++ b/executor/go.mod @@ -7,7 +7,6 @@ require ( github.com/confluentinc/confluent-kafka-go v1.4.2 github.com/ghodss/yaml v1.0.0 github.com/go-logr/logr v0.1.0 - github.com/gogo/protobuf v1.3.1 github.com/golang/protobuf v1.4.2 github.com/google/uuid v1.1.2 github.com/gorilla/mux v1.8.0 diff --git a/executor/go.sum b/executor/go.sum index a6e2f3904e..ea5a727fb7 100644 --- a/executor/go.sum +++ b/executor/go.sum @@ -2096,8 +2096,6 @@ sigs.k8s.io/controller-runtime v0.5.4/go.mod h1:JZUwSMVbxDupo0lTJSSFP5pimEyxGynR sigs.k8s.io/controller-runtime v0.6.1/go.mod h1:XRYBPdbf5XJu9kpS84VJiZ7h/u1hF3gEORz0efEja7A= sigs.k8s.io/controller-runtime v0.6.2 h1:jkAnfdTYBpFwlmBn3pS5HFO06SfxvnTZ1p5PeEF/zAA= sigs.k8s.io/controller-runtime v0.6.2/go.mod h1:vhcq/rlnENJ09SIRp3EveTaZ0yqH526hjf9iJdbUJ/E= -sigs.k8s.io/controller-runtime v0.6.3 h1:SBbr+inLPEKhvlJtrvDcwIpm+uhDvp63Bl72xYJtoOE= -sigs.k8s.io/controller-runtime v0.6.3/go.mod h1:WlZNXcM0++oyaQt4B7C2lEE5JYRs8vJUzRP4N4JpdAY= sigs.k8s.io/controller-runtime v0.6.4 h1:4013CKsBs5bEqo+LevzDett+LLxag/FjQWG94nVZ/9g= sigs.k8s.io/controller-runtime v0.6.4/go.mod h1:WlZNXcM0++oyaQt4B7C2lEE5JYRs8vJUzRP4N4JpdAY= sigs.k8s.io/kustomize v2.0.3+incompatible/go.mod h1:MkjgH3RdOWrievjo6c9T245dYlB5QeXV4WCbnt/PEpU=