Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
08d4d8db
Commit
08d4d8db
authored
Oct 26, 2016
by
ymqytw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update drain test
parent
d5668d62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
drain_test.go
pkg/kubectl/cmd/drain_test.go
+3
-2
No files found.
pkg/kubectl/cmd/drain_test.go
View file @
08d4d8db
...
...
@@ -26,6 +26,7 @@ import (
"net/url"
"os"
"reflect"
"strconv"
"strings"
"testing"
"time"
...
...
@@ -658,11 +659,11 @@ func createPods(ifCreateNewPods bool) (map[string]api.Pod, []api.Pod) {
if
ifCreateNewPods
{
uid
=
types
.
UID
(
i
)
}
else
{
uid
=
types
.
UID
(
str
ing
(
i
)
+
string
(
i
))
uid
=
types
.
UID
(
str
conv
.
Itoa
(
i
)
+
strconv
.
Itoa
(
i
))
}
pod
:=
api
.
Pod
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
"pod"
+
str
ing
(
i
),
Name
:
"pod"
+
str
conv
.
Itoa
(
i
),
Namespace
:
"default"
,
UID
:
uid
,
Generation
:
int64
(
i
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment