mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
fix #24937: flake pod not found
Signed-off-by: liang chenye <liangchenye@huawei.com>
This commit is contained in:
parent
43b644ea6f
commit
3c9306e521
@ -24,6 +24,7 @@ import (
|
|||||||
apierrs "k8s.io/kubernetes/pkg/api/errors"
|
apierrs "k8s.io/kubernetes/pkg/api/errors"
|
||||||
"k8s.io/kubernetes/pkg/client/restclient"
|
"k8s.io/kubernetes/pkg/client/restclient"
|
||||||
client "k8s.io/kubernetes/pkg/client/unversioned"
|
client "k8s.io/kubernetes/pkg/client/unversioned"
|
||||||
|
"k8s.io/kubernetes/pkg/util"
|
||||||
|
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
@ -38,9 +39,10 @@ var _ = Describe("Kubelet Container Manager", func() {
|
|||||||
Describe("oom score adjusting", func() {
|
Describe("oom score adjusting", func() {
|
||||||
namespace := "oom-adj"
|
namespace := "oom-adj"
|
||||||
Context("when scheduling a busybox command that always fails in a pod", func() {
|
Context("when scheduling a busybox command that always fails in a pod", func() {
|
||||||
podName := "bin-false"
|
var podName string
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
|
podName = "bin-false" + string(util.NewUUID())
|
||||||
pod := &api.Pod{
|
pod := &api.Pod{
|
||||||
ObjectMeta: api.ObjectMeta{
|
ObjectMeta: api.ObjectMeta{
|
||||||
Name: podName,
|
Name: podName,
|
||||||
|
Loading…
Reference in New Issue
Block a user