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

@@ -698,6 +698,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 {
@@ -718,6 +719,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 {

View File

@@ -684,6 +684,8 @@ type Minion struct {
HostIP string `json:"hostIP,omitempty" description:"IP address of the node"`
// Resources available on the node
NodeResources NodeResources `json:"resources,omitempty" description:"characterization of node resources"`
// Pod IP range assigned to the node
PodCIDR string `json:"cidr,omitempty" description:"IP range assigned to the node"`
// Status describes the current status of a node
Status NodeStatus `json:"status,omitempty" description:"current status of node"`
// Labels for the node