Skip to content

Commit

Permalink
Merge pull request #295 from rollandf/deadcode
Browse files Browse the repository at this point in the history
Fix deadcode and goimports issues
  • Loading branch information
SchSeba authored May 17, 2022
2 parents 4af8372 + b905cab commit 7c829e3
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ const (
testNamespace = "openshift-sriov-network-operator"

timeout = time.Second * 10
duration = time.Second * 100
interval = time.Millisecond * 250
)

Expand Down
1 change: 0 additions & 1 deletion pkg/render/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const (
filesDir = "files"
ovsUnitsDir = "ovs-units"
switchdevUnitsDir = "switchdev-units"
platformBase = "bindata/manifests/machine-config"
)

func MakeRenderData() RenderData {
Expand Down
7 changes: 0 additions & 7 deletions pkg/utils/shutdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
snclientset "github.com/k8snetworkplumbingwg/sriov-network-operator/pkg/client/clientset/versioned"
admv1 "k8s.io/api/admissionregistration/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"

"k8s.io/client-go/kubernetes"
ctrl "sigs.k8s.io/controller-runtime"
Expand All @@ -17,12 +16,6 @@ import (

var shutdownLog = ctrl.Log.WithName("shutdown")

var sriovnetworksGVR = schema.GroupVersionResource{
Group: "sriovnetwork.openshift.io",
Version: "v1",
Resource: "sriovnetworks",
}

var failurePolicyIgnore = admv1.Ignore

func Shutdown() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"

"github.com/golang/glog"
"k8s.io/api/admission/v1"
v1 "k8s.io/api/admission/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

sriovnetworkv1 "github.com/k8snetworkplumbingwg/sriov-network-operator/api/v1"
Expand Down
1 change: 0 additions & 1 deletion test/e2e/e2e_tests_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ var doneNetNsSet chan error
// Define utility constants for object names and testing timeouts/durations and intervals.
const (
timeout = time.Second * 30
duration = time.Second * 300
interval = time.Second * 1
devPollInterval = time.Millisecond * 400
)
Expand Down

0 comments on commit 7c829e3

Please sign in to comment.