add import_known_versions.go

This commit is contained in:
Chao Xu
2015-09-10 18:36:18 -07:00
parent 64bf839e9f
commit 190ca2ebf2
8 changed files with 24 additions and 6 deletions

View File

@@ -30,8 +30,10 @@ import (
var RegisteredVersions []string
func init() {
// TODO: caesarxuchao: rename this variable to validGroupVersions
validAPIVersions := map[string]bool{
"v1": true,
"v1": true,
"experimental/v1": true,
}
// The default list of supported api versions, in order of most preferred to the least.