fixing tests

This commit is contained in:
Chao Xu
2015-09-10 23:37:26 -07:00
parent 190ca2ebf2
commit 0b6fd8c5c4
9 changed files with 23 additions and 132 deletions

View File

@@ -18,9 +18,10 @@ package install
import (
"fmt"
"runtime/debug"
"strings"
"github.com/golang/glog"
"k8s.io/kubernetes/pkg/api/latest"
"k8s.io/kubernetes/pkg/util/sets"
@@ -40,10 +41,9 @@ const importPrefix = "k8s.io/kubernetes/pkg/api"
var accessor = meta.NewAccessor()
func init() {
debug.PrintStack()
groupMeta, err := latest.RegisterGroup("")
if err != nil {
fmt.Println(err)
glog.V(4).Infof("%v", err)
return
}
// Use the first API version in the list of registered versions as the latest.