mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
add import_known_versions.go
This commit is contained in:
@@ -290,6 +290,8 @@ func SetKubernetesDefaults(config *Config) error {
|
||||
config.Version = defaultVersionFor(config)
|
||||
}
|
||||
version := config.Version
|
||||
fmt.Println("CHAO:")
|
||||
fmt.Println(latest.GroupOrDie(""))
|
||||
versionInterfaces, err := latest.GroupOrDie("").InterfacesFor(version)
|
||||
if err != nil {
|
||||
return fmt.Errorf("API version '%s' is not recognized (valid values: %s)", version, strings.Join(latest.GroupOrDie("").Versions, ", "))
|
||||
|
||||
Reference in New Issue
Block a user