Add node's IP range cidr to NodeSpec
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user