mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Add node's IP range cidr to NodeSpec
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user