Node/Nodelist

This commit is contained in:
Clayton Coleman 2014-12-09 13:10:38 -05:00
parent 279df03377
commit 5447e74129
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,10 @@ import (
var Codec = runtime.CodecFor(api.Scheme, "v1beta1")
func init() {
// Future names are supported, and declared first so they take precedence
api.Scheme.AddKnownTypeWithName("v1beta1", "Node", &Minion{})
api.Scheme.AddKnownTypeWithName("v1beta1", "NodeList", &MinionList{})
api.Scheme.AddKnownTypes("v1beta1",
&Pod{},
&PodList{},

View File

@ -25,6 +25,10 @@ import (
var Codec = runtime.CodecFor(api.Scheme, "v1beta2")
func init() {
// Future names are supported, and declared first so they take precedence
api.Scheme.AddKnownTypeWithName("v1beta2", "Node", &Minion{})
api.Scheme.AddKnownTypeWithName("v1beta2", "NodeList", &MinionList{})
api.Scheme.AddKnownTypes("v1beta2",
&Pod{},
&PodList{},