编译构建

Prerequisites

  • A recent Go distribution (>=1.16)

Additionally, if you are on macOS, you will need bash > v4, GNU sed (gsed), jq, and wget.

  1. brew install bash gnu-sed jq wget

Downloading the source

  1. git clone https://github.com/kubeedge/kubeedge.git
  2. cd kubeedge

Compiling kubeedge

  1. make

Note: Currently keadm is only supported on Ubuntu and CentOS, so the binaries are built with GOOS=linux and placed in _output/local/bin.

Running tests

  1. make verify
  2. make test
  3. make integrationtest

Note: Currently the integrationtest is only supported on Ubuntu.