Merge pull request #69303 from appian/host_aliases_on_same_line

Write HostAliases aliases on same line per host IP
This commit is contained in:
k8s-ci-robot
2018-11-15 14:59:52 -08:00
committed by GitHub
3 changed files with 9 additions and 23 deletions

View File

@@ -175,7 +175,7 @@ var _ = framework.KubeDescribe("Kubelet", func() {
buf.ReadFrom(rc)
hostsFileContent := buf.String()
if !strings.Contains(hostsFileContent, "123.45.67.89\tfoo") || !strings.Contains(hostsFileContent, "123.45.67.89\tbar") {
if !strings.Contains(hostsFileContent, "123.45.67.89\tfoo\tbar") {
return fmt.Errorf("expected hosts file to contain entries from HostAliases. Got:\n%+v", hostsFileContent)
}