mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #95229 from aojea/sourcelb
e2e can't use both pod.Name and pod.GenerateName
This commit is contained in:
commit
1b4fa94c21
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user