Add node's IP range cidr to NodeSpec

This commit is contained in:
Tomek Kulczynski
2015-02-16 13:53:00 +01:00
parent 28dd73dd8c
commit 09c955f94e
6 changed files with 14 additions and 1 deletions

View File

@@ -618,6 +618,7 @@ func init() {
}
out.HostIP = in.Status.HostIP
out.PodCIDR = in.Spec.PodCIDR
return s.Convert(&in.Spec.Capacity, &out.NodeResources.Capacity, 0)
},
func(in *Minion, out *newer.Node, s conversion.Scope) error {
@@ -638,6 +639,7 @@ func init() {
}
out.Status.HostIP = in.HostIP
out.Spec.PodCIDR = in.PodCIDR
return s.Convert(&in.NodeResources.Capacity, &out.Spec.Capacity, 0)
},
func(in *newer.LimitRange, out *LimitRange, s conversion.Scope) error {