Merge pull request #8826 from markturansky/b2d_fix

Fixed setNodeStatus to allow running on pods on OS X
This commit is contained in:
Tim Hockin 2015-05-28 16:54:42 -07:00
commit bade36c7dd

View File

@ -1847,6 +1847,7 @@ func (kl *Kubelet) setNodeStatus(node *api.Node) error {
node.Status.Capacity = api.ResourceList{
api.ResourceCPU: *resource.NewMilliQuantity(0, resource.DecimalSI),
api.ResourceMemory: resource.MustParse("0Gi"),
api.ResourcePods: *resource.NewQuantity(int64(kl.pods), resource.DecimalSI),
}
glog.Errorf("Error getting machine info: %v", err)
} else {