Skip to content

Commit

Permalink
UPSTREAM: <drop>: make RootFsInfo error non-fatal on start
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Jul 23, 2018
1 parent c663c85 commit 3587ab4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/kubelet/cm/container_manager_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,11 @@ func (cm *containerManagerImpl) Start(node *v1.Node,

rootfs, err := cm.cadvisorInterface.RootFsInfo()
if err != nil {
return fmt.Errorf("failed to get rootfs info: %v", err)
}
for rName, rCap := range cadvisor.EphemeralStorageCapacityFromFsInfo(rootfs) {
cm.capacity[rName] = rCap
glog.Errorf("failed to get rootfs info, cannot set ephemeral storage capacity: %v", err)
} else {
for rName, rCap := range cadvisor.EphemeralStorageCapacityFromFsInfo(rootfs) {
cm.capacity[rName] = rCap
}
}

// Ensure that node allocatable configuration is valid.
Expand Down

0 comments on commit 3587ab4

Please sign in to comment.