kubernetes/pkg/kubelet/stats
Kubernetes Submit Queue 18e36c4f88
Merge pull request #62192 from patrikerdes/TestCRIListPodStats
Automatic merge from submit-queue (batch tested with PRs 62192, 61866, 62206, 62360). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Make the test TestCRIListPodStats pass for Darwin and Windows

GetPodCgroupNameSuffix is only implemented for Linux, which mean
that CPU and Memory stats are only available on Linux.

My fix to make the test pass on other OS:es than Linux
is to just check CPU and Memory stats on Linux.

(This is similar to #57637 which fixed the same problem for the
test TestCadvisorListPodStats.)



**What this PR does / why we need it**:
To make all unit tests pass on macOS/Darwin

**Which issue(s) this PR fixes**:
Fixes #62177

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-04-10 23:52:14 -07:00
..
BUILD Remove the workaround of heapster panic 2018-04-09 09:43:39 +08:00
cadvisor_stats_provider_test.go Fix TestCadvisorListPodStats failure under mac/darwin 2017-12-26 19:59:50 -05:00
cadvisor_stats_provider.go Add CPU/Memory pod stats for CRI stats. 2018-02-26 19:29:47 +00:00
cri_stats_provider_test.go Move check and import 2018-04-10 11:55:46 +02:00
cri_stats_provider.go Remove the workaround of heapster panic 2018-04-09 09:43:39 +08:00
helper_test.go
helper.go enable on-demand metrics for eviction 2018-01-08 10:20:02 -08:00
log_metrics_provider_test.go Test cases to verify container log stats 2018-02-21 13:01:49 -08:00
log_metrics_provider.go Adding per container stats for CRI runtimes 2018-02-20 19:50:47 -08:00
stats_provider_linux.go Updated PID pressure node condition. 2018-01-14 18:26:00 +08:00
stats_provider_test.go Make eviction manager work with CRI container runtime. 2018-01-30 17:57:46 +00:00
stats_provider_unsupported.go Updated PID pressure node condition. 2018-01-14 18:26:00 +08:00
stats_provider.go Merge pull request #59906 from abhi/log_stats 2018-02-21 19:40:42 -08:00