mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Update drain test
This commit is contained in:
parent
d5668d6299
commit
08d4d8dba5
@ -26,6 +26,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
@ -658,11 +659,11 @@ func createPods(ifCreateNewPods bool) (map[string]api.Pod, []api.Pod) {
|
|||||||
if ifCreateNewPods {
|
if ifCreateNewPods {
|
||||||
uid = types.UID(i)
|
uid = types.UID(i)
|
||||||
} else {
|
} else {
|
||||||
uid = types.UID(string(i) + string(i))
|
uid = types.UID(strconv.Itoa(i) + strconv.Itoa(i))
|
||||||
}
|
}
|
||||||
pod := api.Pod{
|
pod := api.Pod{
|
||||||
ObjectMeta: api.ObjectMeta{
|
ObjectMeta: api.ObjectMeta{
|
||||||
Name: "pod" + string(i),
|
Name: "pod" + strconv.Itoa(i),
|
||||||
Namespace: "default",
|
Namespace: "default",
|
||||||
UID: uid,
|
UID: uid,
|
||||||
Generation: int64(i),
|
Generation: int64(i),
|
||||||
|
Loading…
Reference in New Issue
Block a user