e2e don't use hardcoded name for containers name

This commit is contained in:
Antonio Ojea 2020-10-17 11:44:45 +02:00
parent c1a781cce7
commit 97a13a0f87

View File

@ -128,7 +128,7 @@ func (t *dnsTestCommon) runDig(dnsName, target string) []string {
Command: cmd,
Namespace: t.f.Namespace.Name,
PodName: t.utilPod.Name,
ContainerName: "util",
ContainerName: t.utilPod.Spec.Containers[0].Name,
CaptureStdout: true,
CaptureStderr: true,
})