在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kubernetes-retired/contrib开源软件地址(OpenSource Url):https://github.com/kubernetes-retired/contrib开源编程语言(OpenSource Language):Go 49.1%开源软件介绍(OpenSource Introduction):Kubernetes ContribDo not add new projects to this repository. We eventually want to
move all code in this repository to more appropriate repositories (see
#762). Create a new
repository in Getting the CodeThe code must be checked out as a subdirectory of mkdir -p $GOPATH/src/k8s.io
cd $GOPATH/src/k8s.io
# Replace "$YOUR_GITHUB_USERNAME" below with your github username
git clone https://github.com/$YOUR_GITHUB_USERNAME/contrib.git
cd contrib Updating GodepsGodeps in contrib/ has a different layout than in kubernetes/ proper. This is because
contrib contains multiple tiny projects, each with their own dependencies. Each
in contrib/ has it's own Godeps.json. For example the Godeps.json for Ingress
is Ingress/Godeps/Godeps.json. This means that godeps commands like Prerequisites for updating GodepsSince we vendor godeps through $ godep version
godep v74 (linux/amd64/go1.6.1)
$ go version
go version go1.6.1 linux/amd64
$ godep save ./... Will automatically save godeps to $ GO15VENDOREXPERIMENT=1 godep save ./... If you have an older version of godep, you must update it: $ go get github.com/tools/godep
$ cd $GOPATH/src/github.com/tools/godep
$ go build -o godep *.go Updating GodepsThe most common dep to update is obviously going to be kubernetes proper. Updating
kubernetes and it's dependancies in the Ingress subproject for example can be done
as follows (the example assumes your Kubernetes repo is rooted at cd $GOPATH/src/github.com/kubernetes/contrib/ingress
godep restore
go get -u github.com/kubernetes/kubernetes
cd $GOPATH/src/github.com/kubernetes/kubernetes
godep restore
cd $GOPATH/src/github/kubernetes/contrib/ingress
rm -rf Godeps
godep save ./...
git [add/remove] as needed
git commit Other deps are similar, although if the dep you wish to update is included from kubernetes we probably want to stay in sync using the above method. If the dep is not in kubernetes proper something like the following should get you a nice clean result: cd $GOPATH/src/github/kubernetes/contrib/ingress
godep restore
go get -u $SOME_DEP
rm -rf Godeps
godep save ./...
git [add/remove] as needed
git commit Running all testsTo run all go test in all projects do this: ./hack/for-go-proj.sh test Getting PRs Merged Into ContribIn order for your PR to get merged, it must have the both Each file modified in the PR will also need to be approved by an approver from its |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论