GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - linkmancheng/contrib: This is a place for various components in the Kubernetes ecosystem that aren't part of the Kubernetes core. Consider creating a new repo instead.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,918 Commits
1,918 Commits

Folders and files

NameName
Last commit message
Last commit date
404-server
404-server
 
 
addon-resizer
addon-resizer
 
 
ansible
ansible
 
 
cluster-autoscaler
cluster-autoscaler
 
 
cni-plugins/to_docker
cni-plugins/to_docker
 
 
compare
compare
 
 
continuousdelivery
continuousdelivery
 
 
diurnal
diurnal
 
 
dnsmasq
dnsmasq
 
 
docker-micro-benchmark
docker-micro-benchmark
 
 
election
election
 
 
exec-healthz
exec-healthz
 
 
flannel-server
flannel-server
 
 
for-demos
for-demos
 
 
git-sync
git-sync
 
 
go2docker
go2docker
 
 
hack
hack
 
 
images
images
 
 
ingress
ingress
 
 
init
init
 
 
keepalived-vip
keepalived-vip
 
 
logging
logging
 
 
micro-demos
micro-demos
 
 
mungegithub
mungegithub
 
 
netperf-tester
netperf-tester
 
 
perfdash
perfdash
 
 
pets
pets
 
 
pod-master
pod-master
 
 
podex
podex
 
 
prometheus
prometheus
 
 
recipes
recipes
 
 
release-notes
release-notes
 
 
scale-demo
scale-demo
 
 
service-loadbalancer
service-loadbalancer
 
 
test-utils
test-utils
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Kubernetes Contrib

Build Status

This is a place for various components in the Kubernetes ecosystem that aren't part of the Kubernetes core.

Getting the Code

The code must be checked out as a subdirectory of k8s.io, and not github.com.

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/kubernetes/contrib.git
cd contrib

Updating Godeps

Godeps 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 godep restore or godep test work in the root directory. Theys should be run from inside the subproject directory you want to test.

Prerequisites for updating Godeps

Since we vendor godeps through /vendor vs the old style Godeps/_workspace, you either need a more recent install of go and godeps, or you need to set GO15VENDOREXPERIMENT=1. Eg:

$ 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 vendor/ instead of _workspace/. If you have an older version of go, you must run:

$ 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 Godeps

The most common dep to update is obviously going to be kuberetes proper. Updating kubernetes and it's dependancies in the Ingress subproject for example can be done as follows (the example assumes you Kubernetes repo is rooted at $GOPATH/src/github.com/kubernetes, s/github.com\/kubernetes/k8s.io/ as required):

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 tests

To run all go test in all projects do this:

./hack/for-go-proj.sh test

About

This is a place for various components in the Kubernetes ecosystem that aren't part of the Kubernetes core. Consider creating a new repo instead.

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.