2 ##############################################################################
3 # Copyright (c) 2019 Huawei Tech and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
13 TESTYAML="testk8s-nginx.yaml"
19 # kubeedge reset internally undo the things done by ./kubeedge init
21 if [ -d "$GOPATH/src/github.com/kubeedge/kubeedge/keadm" ]; then
22 cd $GOPATH/src/github.com/kubeedge/kubeedge/keadm
26 # delete the previously existing certificates
28 if [ -d "/etc/kubeedge/ca" ]; then
29 sudo rm -rf /etc/kubeedge/ca
32 if [ -d "/etc/kubeedge/certs" ]; then
38 if [ -f "certs.tgz" ]; then
42 # delete the kubeedge code
44 if [ -d "$GOPATH/src" ]; then
49 # stop binaries edge_core edgecontroller
53 if [ -f "edge_core" ]; then
57 if [ -f "edgecontroller" ]; then
58 sudo rm edgecontroller
61 if [ $value != $SUPERUSER ]; then
67 if [ -f $TESTYAML ]; then