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
682dd146
Commit
682dd146
authored
Dec 18, 2014
by
Daniel Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3040 from brendandburns/pd2
Fix the update e2e test to remove a race.
parents
4943ee7b
4833b88a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
update.sh
hack/e2e-suite/update.sh
+5
-1
No files found.
hack/e2e-suite/update.sh
View file @
682dd146
...
@@ -44,6 +44,10 @@ function validate() {
...
@@ -44,6 +44,10 @@ function validate() {
local id
local id
num_running
=
0
num_running
=
0
if
[[
${#
pod_id_list
[@]
}
-ne
$num_replicas
]]
;
then
echo
"Too few or too many replicas."
continue
fi
for
id
in
"
${
pod_id_list
[@]+
${
pod_id_list
[@]
}}
"
;
do
for
id
in
"
${
pod_id_list
[@]+
${
pod_id_list
[@]
}}
"
;
do
local
template_string current_status current_image host_ip
local
template_string current_status current_image host_ip
...
@@ -78,7 +82,7 @@ function validate() {
...
@@ -78,7 +82,7 @@ function validate() {
fi
fi
template_string
=
"{{(index .currentState.info
\"
${
CONTROLLER_NAME
}
\"
).image}}"
template_string
=
"{{(index .currentState.info
\"
${
CONTROLLER_NAME
}
\"
).image}}"
current_image
=
$(
$KUBECFG
-template
=
"
${
template_string
}
"
get
"pods/
$id
"
)
current_image
=
$(
$KUBECFG
-template
=
"
${
template_string
}
"
get
"pods/
$id
"
)
||
true
if
[[
"
$current_image
"
!=
"
${
DOCKER_HUB_USER
}
/update-demo:
${
container_image_version
}
"
]]
;
then
if
[[
"
$current_image
"
!=
"
${
DOCKER_HUB_USER
}
/update-demo:
${
container_image_version
}
"
]]
;
then
echo
"
${
id
}
is created but running wrong image"
echo
"
${
id
}
is created but running wrong image"
continue
continue
...
...
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