Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nfs-subdir-external-provisioner
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
nfs-subdir-external-provisioner
Commits
a41f3860
Unverified
Commit
a41f3860
authored
Nov 21, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Nov 21, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #46 from mucahitkurt/kind-cluster-cleanup
delete kind cluster after tests run
parents
4fcafece
1eaaaa1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
prow.sh
prow.sh
+15
-0
No files found.
prow.sh
View file @
a41f3860
...
@@ -580,6 +580,19 @@ EOF
...
@@ -580,6 +580,19 @@ EOF
export
KUBECONFIG
export
KUBECONFIG
}
}
# Deletes kind cluster inside a prow job
delete_cluster_inside_prow_job
()
{
# Inside a real Prow job it is better to clean up at runtime
# instead of leaving that to the Prow job cleanup code
# because the later sometimes times out (https://github.com/kubernetes-csi/csi-release-tools/issues/24#issuecomment-554765872).
if
[
"
$JOB_NAME
"
]
;
then
if
kind get clusters |
grep
-q
csi-prow
;
then
run kind delete cluster
--name
=
csi-prow
||
die
"kind delete failed"
fi
unset
KUBECONFIG
fi
}
# Looks for the deployment as specified by CSI_PROW_DEPLOYMENT and CSI_PROW_KUBERNETES_VERSION
# Looks for the deployment as specified by CSI_PROW_DEPLOYMENT and CSI_PROW_KUBERNETES_VERSION
# in the given directory.
# in the given directory.
find_deployment
()
{
find_deployment
()
{
...
@@ -1017,6 +1030,7 @@ main () {
...
@@ -1017,6 +1030,7 @@ main () {
fi
fi
fi
fi
fi
fi
delete_cluster_inside_prow_job
fi
fi
if
tests_need_alpha_cluster
&&
[
"
${
CSI_PROW_E2E_ALPHA_GATES
}
"
]
;
then
if
tests_need_alpha_cluster
&&
[
"
${
CSI_PROW_E2E_ALPHA_GATES
}
"
]
;
then
...
@@ -1047,6 +1061,7 @@ main () {
...
@@ -1047,6 +1061,7 @@ main () {
fi
fi
fi
fi
fi
fi
delete_cluster_inside_prow_job
fi
fi
fi
fi
...
...
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