Remove pkg/client/unversioned

This commit is contained in:
Maciej Szulik
2018-01-30 15:12:39 +01:00
parent 6e6c4ce1f2
commit 5d721bff81
18 changed files with 33 additions and 639 deletions

View File

@@ -588,7 +588,7 @@ func (c *reaperCoreFake) Pods(namespace string) coreclient.PodInterface {
return pods
}
func pod() *api.Pod {
func newPod() *api.Pod {
return &api.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: metav1.NamespaceDefault, Name: "foo"}}
}
@@ -602,7 +602,7 @@ func TestSimpleStop(t *testing.T) {
}{
{
fake: &reaperFake{
Clientset: fake.NewSimpleClientset(pod()),
Clientset: fake.NewSimpleClientset(newPod()),
},
kind: api.Kind("Pod"),
actions: []testcore.Action{
@@ -624,7 +624,7 @@ func TestSimpleStop(t *testing.T) {
},
{
fake: &reaperFake{
Clientset: fake.NewSimpleClientset(pod()),
Clientset: fake.NewSimpleClientset(newPod()),
noDeletePod: true,
},
kind: api.Kind("Pod"),