summaryrefslogtreecommitdiff
path: root/edge/hack
diff options
context:
space:
mode:
authorSiddharth Bhadri <siddharth.bhadri@huawei.com>2019-04-28 19:41:35 +0530
committerGitHub <noreply@github.com>2019-04-28 19:41:35 +0530
commitf7644ee04e7955f66ccf3560af162f6cc24451e8 (patch)
treedeff0db301e74ffdbb2915820d25be975a8b7c3e /edge/hack
parentMerge pull request #424 from kadisi/set_pods (diff)
downloadkubeedge-f7644ee04e7955f66ccf3560af162f6cc24451e8.tar.gz
Revert "setup script changes for IEF"
Diffstat (limited to 'edge/hack')
-rw-r--r--edge/hack/keepalivefunction.txt15
-rw-r--r--edge/hack/setup_for_IEF.sh9
2 files changed, 0 insertions, 24 deletions
diff --git a/edge/hack/keepalivefunction.txt b/edge/hack/keepalivefunction.txt
deleted file mode 100644
index 1a8a28b08..000000000
--- a/edge/hack/keepalivefunction.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-
-func (ehc *Controller) keepalive() {
- for {
- msg := model.NewMessage("").
- BuildRouter(ModuleNameEdgeHub, "resource", "node", "keepalive").
- FillBody("ping")
- err := ehc.chClient.Send(*msg)
- if err != nil {
- log.LOGGER.Errorf("websocket write error: %v", err)
- ehc.stopChan <- struct{}{}
- return
- }
- time.Sleep(ehc.config.HeartbeatPeriod)
- }
-}
diff --git a/edge/hack/setup_for_IEF.sh b/edge/hack/setup_for_IEF.sh
index 8635c13c8..85ce56268 100644
--- a/edge/hack/setup_for_IEF.sh
+++ b/edge/hack/setup_for_IEF.sh
@@ -183,16 +183,7 @@ create_edge_config() {
sed -i "s|obs_endpoint: .*|obs_endpoint: ${OBS_URL}|g" ${CURRENT_PATH}/conf/edge.yaml
}
-keepalive() {
- if [ ! -f ${CURRENT_PATH}/pkg/edgehub/controller.go ]; then
- echo "There is no ${CURRENT_PATH}/pkg/edgehub/controller.go!"
- exit 1
- fi
- sed -i "s|go\ ehc.routeToCloud().*|go ehc.routeToCloud()\n\t\tgo ehc.keepalive()|g" ${CURRENT_PATH}/pkg/edgehub/controller.go
- cat ${CURRENT_PATH}/hack/keepalivefunction.txt >> ${CURRENT_PATH}/pkg/edgehub/controller.go
-}
-keepalive
create_system_config
parse_config
create_edge_config