kubernetes/test/e2e/windows
Vincent Boulineau 3bff11244b
kubelet: fix /stats/summary endpoint on Windows when init-containers are present on the node
Following changes in #87730, Kubelet is directly hcsshim to gather stats.
However, unlike `docker stats` API that was used before, hcsshim does not
keep information about exited containers.

When the Kubelet lists containers (`docker_container.go:ListContainers()`),
it sets `All: true`, retrieving non-running containers.

When docker stats is called with such container id, it'll return a valid JSON
with all values set to 0. The non-running containers are filtered later on in the process.

When the hcsshim is called with such container id, it'll return an error, effectively
stopping the stats retrieval for all containers.
2020-05-04 14:42:02 +02:00
..
BUILD Merge pull request #86101 from PatrickLang/fix-cpumaximum 2020-02-26 00:20:26 -08:00
cpu_limits.go beta.kubernetes.io/os is already deprecated 2020-03-25 12:57:06 +08:00
density.go deref all calls to metav1.NewDeleteOptions that are passed to clients. 2020-03-05 14:59:46 -08:00
dns.go Use e2epod.WaitForPodNameRunningInNamespace directly 2020-03-17 00:13:14 +00:00
framework.go test/e2e/windows/:Use e2eskipper package 2020-01-11 15:27:54 +08:00
gmsa_full.go Windows tests: Makes gMSA test more nanoserver friendly 2020-04-13 08:05:16 -07:00
gmsa_kubelet.go Promote GMSA to GA 2020-03-04 02:56:21 +00:00
hybrid_network.go tests: Fixes Hybrid cluster network test 2020-02-21 04:37:45 -08:00
kubelet_stats.go kubelet: fix /stats/summary endpoint on Windows when init-containers are present on the node 2020-05-04 14:42:02 +02:00
memory_limits.go test: don't use hardcoded pod count for memory limit test 2020-02-24 14:34:51 -08:00
OWNERS Updating OWNERS for Windows+Azure tests 2020-02-25 19:56:03 +00:00
README.md Updating Windows' e2e tests' README to the official repo list 2019-03-06 17:58:18 -08:00
security_context.go Use e2epod.WaitForPodTerminatedInNamespace directly 2020-03-22 17:43:33 +00:00
service.go tests: Create pod for Windows test 2020-02-23 02:09:14 -08:00
utils.go Adding an e2e test on GMSA support 2019-08-29 14:51:23 +00:00
volumes.go test/e2e/windows/:Use e2eskipper package 2020-01-11 15:27:54 +08:00

Notes to run sig-windows tests

  1. Prereqs:
KUBECONFIG=path/to/kubeconfig
curl https://raw.githubusercontent.com/kubernetes-sigs/windows-testing/master/images/image-repo-list -o repo_list
export KUBE_TEST_REPO_LIST=$(pwd)/repo_list
  1. Run only sig-windows tests:

    ./e2e.test --provider=local --ginkgo.noColor --ginkgo.focus="\[sig-windows\]" --node-os-distro="windows"
    

e2e_node/density_test diff

This test is borrowed from the density test in e2e_node/density_test. All but the first test were omitted as well as some logging.