mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
Combine pkg/apitools and pkg/api/common and call the result pkg/runtime
This commit is contained in:
@@ -22,8 +22,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/apitools"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/tools"
|
||||
"github.com/coreos/go-etcd/etcd"
|
||||
)
|
||||
@@ -36,7 +36,7 @@ func TestGetEtcdData(t *testing.T) {
|
||||
fakeClient.Data["/registry/hosts/machine/kubelet"] = tools.EtcdResponseWithError{
|
||||
R: &etcd.Response{
|
||||
Node: &etcd.Node{
|
||||
Value: apitools.EncodeOrDie(&api.ContainerManifestList{
|
||||
Value: runtime.EncodeOrDie(&api.ContainerManifestList{
|
||||
Items: []api.ContainerManifest{{ID: "foo"}},
|
||||
}),
|
||||
ModifiedIndex: 1,
|
||||
@@ -79,7 +79,7 @@ func TestGetEtcd(t *testing.T) {
|
||||
fakeClient.Data["/registry/hosts/machine/kubelet"] = tools.EtcdResponseWithError{
|
||||
R: &etcd.Response{
|
||||
Node: &etcd.Node{
|
||||
Value: apitools.EncodeOrDie(&api.ContainerManifestList{
|
||||
Value: runtime.EncodeOrDie(&api.ContainerManifestList{
|
||||
Items: []api.ContainerManifest{manifest},
|
||||
}),
|
||||
ModifiedIndex: 1,
|
||||
@@ -113,7 +113,7 @@ func TestWatchEtcd(t *testing.T) {
|
||||
fakeClient.Data["/registry/hosts/machine/kubelet"] = tools.EtcdResponseWithError{
|
||||
R: &etcd.Response{
|
||||
Node: &etcd.Node{
|
||||
Value: apitools.EncodeOrDie(&api.ContainerManifestList{}),
|
||||
Value: runtime.EncodeOrDie(&api.ContainerManifestList{}),
|
||||
ModifiedIndex: 2,
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user