Kubernetes developer tools
原文链接 http://www.k8s.tips/tech/2016/11/22/k8s_dev_tools/
注:以下为加速网络访问所做的原文缓存,经过重新格式化,可能存在格式方面的问题,或偶有遗漏信息,请以原文为准。
Build
make
Unit test
make check WHAT=pkg/kubectl
make check WHAT=pkg/kubectl KUBE_TEST_ARGS="-run TestOfferStorage" GOFLAGS=-v
E2E test
go run hack/e2e.go -v --test
Update vendors
// use new/clear $GOPATH
export KPATH=$HOME/code/kubernetes
mkdir -p $KPATH/src/k8s.io
cd $KPATH/src/k8s.io
// restore the dependencies into new $GOPATH
godep restore
// Update dependencies, e.g. godep get
rm -rf Godeps
rm -rf vendor
./hack/godep-save.sh
Verify before commit
make update
make verify