Merge pull request #87299 from mikedanese/ctx

context in client-go
This commit is contained in:
Kubernetes Prow Robot
2020-02-08 06:43:52 -08:00
committed by GitHub
954 changed files with 8533 additions and 7714 deletions

View File

@@ -17,6 +17,7 @@ limitations under the License.
package utils
import (
"context"
"fmt"
v1 "k8s.io/api/core/v1"
@@ -97,7 +98,7 @@ func (h *hostExecutor) launchNodeExecPod(node string) *v1.Pod {
return &privileged
}(true),
}
pod, err := cs.CoreV1().Pods(ns.Name).Create(hostExecPod)
pod, err := cs.CoreV1().Pods(ns.Name).Create(context.TODO(), hostExecPod)
framework.ExpectNoError(err)
err = e2epod.WaitForPodRunningInNamespace(cs, pod)
framework.ExpectNoError(err)