Skip to content

Commit

Permalink
Merge pull request kubernetes#29958 from ronnielai/dep
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Updated cadvisor version

cc @derekwaynecarr
  • Loading branch information
Kubernetes Submit Queue authored Aug 4, 2016
2 parents d6854cb + e00a35c commit 8ab06a3
Show file tree
Hide file tree
Showing 18 changed files with 211 additions and 161 deletions.
160 changes: 80 additions & 80 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/kubelet/cadvisor/cadvisor_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func New(port uint, runtime string) (Interface, error) {
}

// Create and start the cAdvisor container manager.
m, err := manager.New(memory.New(statsCacheDuration, nil), sysFs, maxHousekeepingInterval, allowDynamicHousekeeping, cadvisorMetrics.MetricSet{cadvisorMetrics.NetworkTcpUsageMetrics: struct{}{}})
m, err := manager.New(memory.New(statsCacheDuration, nil), sysFs, maxHousekeepingInterval, allowDynamicHousekeeping, cadvisorMetrics.MetricSet{cadvisorMetrics.NetworkTcpUsageMetrics: struct{}{}}, http.DefaultClient)
if err != nil {
return nil, err
}
Expand Down
8 changes: 4 additions & 4 deletions pkg/kubelet/server/stats/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ func (sb *summaryBuilder) build() (*stats.Summary, error) {
AvailableBytes: &sb.rootFsInfo.Available,
CapacityBytes: &sb.rootFsInfo.Capacity,
UsedBytes: &sb.rootFsInfo.Usage,
InodesFree: &sb.rootFsInfo.InodesFree},
InodesFree: sb.rootFsInfo.InodesFree},
StartTime: rootStats.StartTime,
Runtime: &stats.RuntimeStats{
ImageFs: &stats.FsStats{
AvailableBytes: &sb.imageFsInfo.Available,
CapacityBytes: &sb.imageFsInfo.Capacity,
UsedBytes: &sb.imageStats.TotalStorageBytes,
InodesFree: &sb.imageFsInfo.InodesFree,
InodesFree: sb.imageFsInfo.InodesFree,
},
},
}
Expand Down Expand Up @@ -164,14 +164,14 @@ func (sb *summaryBuilder) containerInfoV2FsStats(
cs.Logs = &stats.FsStats{
AvailableBytes: &sb.rootFsInfo.Available,
CapacityBytes: &sb.rootFsInfo.Capacity,
InodesFree: &sb.rootFsInfo.InodesFree,
InodesFree: sb.rootFsInfo.InodesFree,
}

// The container rootFs lives on the imageFs devices (which may not be the node root fs)
cs.Rootfs = &stats.FsStats{
AvailableBytes: &sb.imageFsInfo.Available,
CapacityBytes: &sb.imageFsInfo.Capacity,
InodesFree: &sb.imageFsInfo.InodesFree,
InodesFree: sb.imageFsInfo.InodesFree,
}
lcs, found := sb.latestContainerStats(info)
if !found {
Expand Down
6 changes: 4 additions & 2 deletions pkg/kubelet/server/stats/summary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,17 @@ func TestBuildSummary(t *testing.T) {
"/pod2-c0": summaryTestContainerInfo(seedPod2Container, pName2, namespace2, cName20),
}

freeRootfsInodes := rootfsInodesFree
rootfs := v2.FsInfo{
Capacity: rootfsCapacity,
Available: rootfsAvailable,
InodesFree: rootfsInodesFree,
InodesFree: &freeRootfsInodes,
}
freeImagefsInodes := imagefsInodesFree
imagefs := v2.FsInfo{
Capacity: imagefsCapacity,
Available: imagefsAvailable,
InodesFree: imagefsInodesFree,
InodesFree: &freeImagefsInodes,
}

// memory limit overrides for each container (used to test available bytes if a memory limit is known)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8ab06a3

Please sign in to comment.