diff --git a/test/e2e/framework/pod/resource.go b/test/e2e/framework/pod/resource.go index 84a69cb87fd..f619094db76 100644 --- a/test/e2e/framework/pod/resource.go +++ b/test/e2e/framework/pod/resource.go @@ -456,7 +456,9 @@ func NewExecPodSpec(ns, name string, hostNetwork bool) *v1.Pod { // newExecPodSpec returns the pod spec of exec pod func newExecPodSpec(ns, generateName string) *v1.Pod { - pod := NewAgnhostPod(ns, "agnhost-pod", nil, nil, nil) + // GenerateName is an optional prefix, used by the server, + // to generate a unique name ONLY IF the Name field has not been provided + pod := NewAgnhostPod(ns, "", nil, nil, nil) pod.ObjectMeta.GenerateName = generateName return pod }