mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Node/Nodelist
This commit is contained in:
parent
279df03377
commit
5447e74129
@ -25,6 +25,10 @@ import (
|
|||||||
var Codec = runtime.CodecFor(api.Scheme, "v1beta1")
|
var Codec = runtime.CodecFor(api.Scheme, "v1beta1")
|
||||||
|
|
||||||
func init() {
|
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",
|
api.Scheme.AddKnownTypes("v1beta1",
|
||||||
&Pod{},
|
&Pod{},
|
||||||
&PodList{},
|
&PodList{},
|
||||||
|
@ -25,6 +25,10 @@ import (
|
|||||||
var Codec = runtime.CodecFor(api.Scheme, "v1beta2")
|
var Codec = runtime.CodecFor(api.Scheme, "v1beta2")
|
||||||
|
|
||||||
func init() {
|
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",
|
api.Scheme.AddKnownTypes("v1beta2",
|
||||||
&Pod{},
|
&Pod{},
|
||||||
&PodList{},
|
&PodList{},
|
||||||
|
Loading…
Reference in New Issue
Block a user