Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
37b79dfa
Commit
37b79dfa
authored
Jul 19, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the Review Apps cleanup function
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
930c58f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
scripts/review-apps.sh
scripts/review-apps.sh
+4
-4
No files found.
scripts/review-apps.sh
View file @
37b79dfa
...
...
@@ -159,9 +159,9 @@ function delete() {
}
function
cleanup
()
{
kubectl
get ingress,configmap,all
-n
"
$KUBE_NAMESPACE
"
\
-o
jsonpath
=
'{range .items[*]}{.kind}{" "}{.metadata.name}{"\n"}{end}'
\
|
grep
"CI_ENVIRONMENT_SLUG"
\
| xargs
-n2
kubectl delete
-n
"
$KUBE_NAMESPACE
"
\
kubectl
-n
"
$KUBE_NAMESPACE
"
get ingress,svc,pdb,hpa,deploy,statefulset,job,pod,secret,configmap,pvc,secret,clusterrole,clusterrolebinding,role,rolebinding,sa 2>&1
\
|
grep
"
$CI_ENVIRONMENT_SLUG
"
\
|
awk
'{print $1}'
\
| xargs
kubectl
-n
"
$KUBE_NAMESPACE
"
delete
\
||
true
}
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