mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-30 23:57:46 +00:00
Fix assertion for host network hostname e2e test
The original assumption is wrong, as the node name may not match the hostname of the host in some circumstances. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
This commit is contained in:
parent
a07d3c49b3
commit
104b5a0f2c
@ -686,8 +686,8 @@ var _ = common.SIGDescribe("DNS HostNetwork", func() {
|
||||
stdout, err := e2eoutput.RunHostCmd(testAgnhostPod.Namespace, testAgnhostPod.Name, "hostname")
|
||||
framework.ExpectNoError(err, "failed to run command hostname: %s", stdout)
|
||||
hostname := strings.TrimSpace(stdout)
|
||||
if node.Name != hostname {
|
||||
framework.Failf("expected hostname: %s, got: %s", node.Name, hostname)
|
||||
if dnsTestPodHostName == hostname {
|
||||
framework.Failf("https://issues.k8s.io/67019 expected spec.Hostname %s to be ignored", hostname)
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user