move ref.go to its own subpackage

This commit is contained in:
Chao Xu
2017-04-10 14:20:02 -07:00
parent c3463d737e
commit d9920c53a5
22 changed files with 215 additions and 197 deletions

View File

@@ -41,6 +41,7 @@ import (
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/rest/fake"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/ref"
"k8s.io/kubernetes/pkg/api/testapi"
"k8s.io/kubernetes/pkg/apis/batch"
"k8s.io/kubernetes/pkg/apis/extensions"
@@ -795,7 +796,7 @@ func (m *MyReq) isFor(method string, path string) bool {
}
func refJson(t *testing.T, o runtime.Object) string {
ref, err := api.GetReference(api.Scheme, o)
ref, err := ref.GetReference(api.Scheme, o)
if err != nil {
t.Fatalf("unexpected error: %v", err)
}