Skip to content

Commit

Permalink
Fix utility clock import (Mirantis#1)
Browse files Browse the repository at this point in the history
Signed-off-by: galal-hussein <[email protected]>
  • Loading branch information
galal-hussein authored and brandond committed Jan 20, 2023
1 parent 3c5fedf commit 18c40d7
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 91 deletions.
2 changes: 1 addition & 1 deletion core/docker_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import (
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"k8s.io/apimachinery/pkg/util/clock"
runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
containertest "k8s.io/kubernetes/pkg/kubelet/container/testing"
clock "k8s.io/utils/clock/testing"

"github.com/Mirantis/cri-dockerd/libdocker"
"github.com/Mirantis/cri-dockerd/network"
Expand Down
2 changes: 1 addition & 1 deletion libdocker/fake_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
dockerimagetypes "github.com/docker/docker/api/types/image"

v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/clock"
"k8s.io/utils/clock"
)

type CalledDetail struct {
Expand Down
2 changes: 1 addition & 1 deletion streaming/request_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"sync"
"time"

"k8s.io/apimachinery/pkg/util/clock"
"k8s.io/utils/clock"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion streaming/request_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"k8s.io/apimachinery/pkg/util/clock"
clock "k8s.io/utils/clock/testing"
)

func TestInsert(t *testing.T) {
Expand Down
86 changes: 0 additions & 86 deletions vendor/k8s.io/apimachinery/pkg/util/clock/clock.go

This file was deleted.

1 change: 0 additions & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,6 @@ k8s.io/apimachinery/pkg/runtime/serializer/versioning
k8s.io/apimachinery/pkg/selection
k8s.io/apimachinery/pkg/types
k8s.io/apimachinery/pkg/util/cache
k8s.io/apimachinery/pkg/util/clock
k8s.io/apimachinery/pkg/util/diff
k8s.io/apimachinery/pkg/util/errors
k8s.io/apimachinery/pkg/util/framer
Expand Down

0 comments on commit 18c40d7

Please sign in to comment.