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
8ad671b0
Commit
8ad671b0
authored
Feb 13, 2015
by
Jeff Lowdermilk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup resources after shell tests exit
parent
b786c116
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
util.sh
cluster/gce/util.sh
+1
-1
guestbook.sh
hack/e2e-suite/guestbook.sh
+3
-4
services.sh
hack/e2e-suite/services.sh
+1
-2
No files found.
cluster/gce/util.sh
View file @
8ad671b0
...
...
@@ -509,7 +509,7 @@ function kube-up {
local
kubectl
=
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
local
context
=
"
${
PROJECT
}
_
${
INSTANCE_PREFIX
}
"
local
user
=
"
${
INSTANCE_PREFIX
}
-admin"
local
user
=
"
${
context
}
-admin"
local
config_dir
=
"
${
HOME
}
/.kube/
${
context
}
"
# TODO: generate ADMIN (and KUBELET) tokens and put those in the master's
...
...
hack/e2e-suite/guestbook.sh
View file @
8ad671b0
...
...
@@ -37,8 +37,9 @@ prepare-e2e
GUESTBOOK
=
"
${
KUBE_ROOT
}
/examples/guestbook"
echo
"WARNING: this test is a no op that only attempts to launch guestbook resources."
# Launch the guestbook example
${
KUBECTL
}
create
-f
"
${
GUESTBOOK
}
"
${
KUBECTL
}
create
-f
"
${
GUESTBOOK
}
"
sleep
15
...
...
@@ -48,9 +49,7 @@ echo "Pods running: ${POD_LIST_1}"
# TODO make this an actual test. Open up a firewall and use curl to post and
# read a message via the frontend
${
KUBECTL
}
stop rc redis-slave-controller
${
KUBECTL
}
delete services redis-master
${
KUBECTL
}
delete pods redis-master
${
KUBECTL
}
stop
-f
"
${
GUESTBOOK
}
"
POD_LIST_2
=
$(${
KUBECTL
}
get pods
-o
template
'--template={{range.items}}{{.id}} {{end}}'
)
echo
"Pods running after shutdown:
${
POD_LIST_2
}
"
...
...
hack/e2e-suite/services.sh
View file @
8ad671b0
...
...
@@ -59,7 +59,6 @@ function join() {
svcs_to_clean
=()
function
do_teardown
()
{
local
svc
return
for
svc
in
"
${
svcs_to_clean
[@]
:+
${
svcs_to_clean
[@]
}}
"
;
do
stop_service
"
${
svc
}
"
done
...
...
@@ -284,7 +283,7 @@ function verify_from_container() {
fi
}
trap
"do_teardown"
EXIT
trap
do_teardown
EXIT
# Get node IP addresses and pick one as our test point.
detect-minions
...
...
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