mirror of https://github.com/k3s-io/k3s
Merge pull request #624 from dchen1107/cadvisor
update cadvisor client package which includes my fix for #608pull/6/head
commit
6b5690a259
|
@ -36,10 +36,6 @@ func NewClient(URL string) (*Client, error) {
|
|||
"api/v1.0",
|
||||
}, "/"),
|
||||
}
|
||||
_, err := c.MachineInfo()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return c, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ func TestGetContainerInfo(t *testing.T) {
|
|||
NumStats: 3,
|
||||
NumSamples: 2,
|
||||
CpuUsagePercentiles: []int{10, 50, 90},
|
||||
MemoryUsagePercentages: []int{10, 80, 90},
|
||||
MemoryUsagePercentiles: []int{10, 80, 90},
|
||||
}
|
||||
containerName := "/some/container"
|
||||
cinfo := itest.GenerateRandomContainerInfo(containerName, 4, query, 1*time.Second)
|
||||
|
|
Loading…
Reference in New Issue