From 434090349d440cdf6d624fb28f96414dd38d73b1 Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Tue, 5 Feb 2019 17:46:59 -0800 Subject: [PATCH] tests: Adds [LinuxOnly] tag to conformance test The test "should write entries to /etc/hosts" should have the [LinuxOnly] tag as it cannot pass on Windows; individual files cannot be mounted in Windows Containers. This test was missed in the original PR (https://github.com/kubernetes/kubernetes/pull/73204) --- test/e2e/common/kubelet.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/common/kubelet.go b/test/e2e/common/kubelet.go index ca9bda6b40d..310a470f711 100644 --- a/test/e2e/common/kubelet.go +++ b/test/e2e/common/kubelet.go @@ -140,8 +140,9 @@ var _ = framework.KubeDescribe("Kubelet", func() { Release : v1.13 Testname: Kubelet, hostAliases Description: Create a Pod with hostAliases and a container with command to output /etc/hosts entries. Pod's logs MUST have matching entries of specified hostAliases to the output of /etc/hosts entries. + Kubernetes mounts the /etc/hosts file into its containers, however, mounting individual files is not supported on Windows Containers. For this reason, this test is marked LinuxOnly. */ - framework.ConformanceIt("should write entries to /etc/hosts [NodeConformance]", func() { + framework.ConformanceIt("should write entries to /etc/hosts [LinuxOnly] [NodeConformance]", func() { podClient.CreateSync(&v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: podName,