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
98cd7086
Unverified
Commit
98cd7086
authored
Nov 07, 2018
by
k8s-ci-robot
Committed by
GitHub
Nov 07, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #70648 from maht/master
Fix end-to-end test logic to get image name
parents
a3207664
d0aa3020
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
rc_util.go
test/e2e/framework/rc_util.go
+1
-1
No files found.
test/e2e/framework/rc_util.go
View file @
98cd7086
...
@@ -247,7 +247,7 @@ func ValidateController(c clientset.Interface, containerImage string, replicas i
...
@@ -247,7 +247,7 @@ func ValidateController(c clientset.Interface, containerImage string, replicas i
// You can read about the syntax here: http://golang.org/pkg/text/template/.
// You can read about the syntax here: http://golang.org/pkg/text/template/.
getContainerStateTemplate
:=
fmt
.
Sprintf
(
`--template={{if (exists . "status" "containerStatuses")}}{{range .status.containerStatuses}}{{if (and (eq .name "%s") (exists . "state" "running"))}}true{{end}}{{end}}{{end}}`
,
containername
)
getContainerStateTemplate
:=
fmt
.
Sprintf
(
`--template={{if (exists . "status" "containerStatuses")}}{{range .status.containerStatuses}}{{if (and (eq .name "%s") (exists . "state" "running"))}}true{{end}}{{end}}{{end}}`
,
containername
)
getImageTemplate
:=
fmt
.
Sprintf
(
`--template={{if (exists . "s
tatus" "containerStatuses")}}{{range .status.containerStatuse
s}}{{if eq .name "%s"}}{{.image}}{{end}}{{end}}{{end}}`
,
containername
)
getImageTemplate
:=
fmt
.
Sprintf
(
`--template={{if (exists . "s
pec" "containers")}}{{range .spec.container
s}}{{if eq .name "%s"}}{{.image}}{{end}}{{end}}{{end}}`
,
containername
)
By
(
fmt
.
Sprintf
(
"waiting for all containers in %s pods to come up."
,
testname
))
//testname should be selector
By
(
fmt
.
Sprintf
(
"waiting for all containers in %s pods to come up."
,
testname
))
//testname should be selector
waitLoop
:
waitLoop
:
...
...
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