Forráskód Böngészése

rename tools/kubeedge to tools/kubernetes (#375)

chensheng 4 éve
szülő
commit
4b3a87a122

+ 1 - 1
README-CN.md

@@ -42,7 +42,7 @@ Kuiper 可以运行在各类物联网的边缘使用场景中,比如工业物
 - 管理能力
   - 通过命令行对流、规则和插件进行管理
   - 通过 REST API 也可以对流、规则和插件进行管理
-  - 与 [KubeEdge](https://github.com/kubeedge/kubeedge)、[K3s](https://github.com/rancher/k3s) 等基于边缘 Kubernetes 框架的集成能力
+  - 与 [KubeEdge](https://github.com/kubeedge/kubeedge)、[K3s](https://github.com/rancher/k3s)、[Baetyl](https://github.com/baetyl/baetyl) 等基于边缘 Kubernetes 框架的集成能力
 
 - 与 EMQ X Edge 集成
 

+ 1 - 1
README.md

@@ -43,7 +43,7 @@ It can be run at various IoT edge use scenarios, such as real-time processing of
 
   - Stream and rule management through CLI
   - Stream and rule management through REST API
-  - Easily be integrate with [KubeEdge](https://github.com/kubeedge/kubeedge) and [K3s](https://github.com/rancher/k3s), which bases Kubernetes
+  - Easily be integrate with [KubeEdge](https://github.com/kubeedge/kubeedge), [K3s](https://github.com/rancher/k3s) and [Baetyl](https://github.com/baetyl/baetyl), which bases Kubernetes
 
 - Integration with EMQ X Edge
 

+ 2 - 2
tools/kubeedge/README-CN.md

@@ -29,12 +29,12 @@ port: 9081  //kuiper 端口
 timeout: 500  //执行一条命令超时时间(单位:毫秒)
 intervalTime: 60  //隔多久检查一次命令文件夹(单位:秒)
 ip: "127.0.0.1" //kuiper ip地址
-logPath: "./log/kubeedge.log" //日志保存路径
+logPath: "./log/kubernetes.log" //日志保存路径
 commandDir: "./sample/" //命令文件夹路径
 ```
 ### 1.4 编译程序:
 
-执行 `go build -o tools/kubeedge/kubeedge tools/kubeedge/main.go` 命令即可生成 kubeedge 程序。
+执行 `go build -o tools/kubernetes/kubernetes tools/kubernetes/main.go` 命令即可生成 kubernetes 程序。
 
 ## 2 流的操作示例
 

+ 2 - 2
tools/kubeedge/README.md

@@ -29,12 +29,12 @@ port: 9081  //kuiper port
 timeout: 500  //Timeout for executing a command (unit: ms)
 intervalTime: 60  //interval of Checking the command folder  (unit: seconds)
 ip: "127.0.0.1" //kuiper ip adress
-logPath: "./log/kubeedge.log" //Log save path
+logPath: "./log/kubernetes.log" //Log save path
 commandDir: "./sample/" //Command folder path
 ```
 ### 1.4 Compile the program:
 
-Execute the command of `go build -o tools/kubeedge/kubeedge tools/kubeedge/main.go` to generate the kubeedge program.
+Execute the command of `go build -o tools/kubernetes/kubernetes tools/kubernetes/main.go` to generate the kubernetes program.
 
 ## 2 Example of stream operation
 

+ 3 - 2
tools/kubeedge/common/conf.go

@@ -4,8 +4,6 @@ import (
 	"bytes"
 	"encoding/json"
 	"fmt"
-	"github.com/go-yaml/yaml"
-	"github.com/sirupsen/logrus"
 	"io/ioutil"
 	"net/http"
 	"os"
@@ -13,6 +11,9 @@ import (
 	"path/filepath"
 	"runtime"
 	"time"
+
+	"github.com/go-yaml/yaml"
+	"github.com/sirupsen/logrus"
 )
 
 type (

tools/kubeedge/conf/cf.yaml → tools/kubernetes/conf/cf.yaml


+ 1 - 1
tools/kubeedge/main.go

@@ -1,7 +1,7 @@
 package main
 
 import (
-	"github.com/emqx/kuiper/tools/kubeedge/util"
+	"github.com/emqx/kuiper/tools/kubernetes/util"
 )
 
 func main() {

tools/kubeedge/sample/sample.json → tools/kubernetes/sample/sample.json


+ 2 - 1
tools/kubeedge/util/util.go

@@ -3,12 +3,13 @@ package util
 import (
 	"encoding/json"
 	"fmt"
-	"github.com/emqx/kuiper/tools/kubeedge/common"
 	"io/ioutil"
 	"os"
 	"path"
 	"strings"
 	"time"
+
+	"github.com/emqx/kuiper/tools/kubernetes/common"
 )
 
 type (

tools/kubeedge/util/util_test.go → tools/kubernetes/util/util_test.go