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
84ceaf19
Unverified
Commit
84ceaf19
authored
Jul 10, 2018
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure rs pod cleanup happens
parent
3b269e18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
apps.sh
test/cmd/apps.sh
+3
-1
No files found.
test/cmd/apps.sh
View file @
84ceaf19
...
...
@@ -494,13 +494,15 @@ run_rs_tests() {
kube::log::status
"Deleting rs"
kubectl delete rs frontend
"
${
kube_flags
[@]
}
"
# Post-condition: no pods from frontend replica set
kube::test::
ge
t_object_assert
'pods -l "tier=frontend"'
"{{range.items}}{{
$id_field
}}:{{end}}"
''
kube::test::
wai
t_object_assert
'pods -l "tier=frontend"'
"{{range.items}}{{
$id_field
}}:{{end}}"
''
### Create and then delete a replica set with cascade=false, make sure it doesn't delete pods.
# Pre-condition: no replica set exists
kube::test::get_object_assert rs
"{{range.items}}{{
$id_field
}}:{{end}}"
''
# Command
kubectl create
-f
hack/testdata/frontend-replicaset.yaml
"
${
kube_flags
[@]
}
"
# wait for all 3 pods to be set up
kube::test::wait_object_assert
'pods -l "tier=frontend"'
"{{range.items}}{{
$pod_container_name_field
}}:{{end}}"
'php-redis:php-redis:php-redis:'
kube::log::status
"Deleting rs"
kubectl delete rs frontend
"
${
kube_flags
[@]
}
"
--cascade
=
false
# Wait for the rs to be deleted.
...
...
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