Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the reset wrapper - do a proper reset #626

Merged
merged 4 commits into from
Sep 3, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion microk8s-resources/wrappers/microk8s-reset.wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ clean_cluster() {
done

echo "Cleaning up addons client binaries.."
if [ -d "$SNAP_DATA/bin/" ]
if [ -d "$SNAP_DATA/bin/" ]
then
sudo rm -rf "$SNAP_DATA/bin/"
fi
Expand All @@ -45,6 +45,8 @@ clean_cluster() {
exit_if_stopped
exit_if_no_permissions

clean_cluster

${SNAP}/microk8s-stop.wrapper
sleep 5
${SNAP}/microk8s-start.wrapper