Skip to content

Commit bf74d53

Browse files
committed
first commit
0 parents  commit bf74d53

File tree

3,087 files changed

+1140182
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,087 files changed

+1140182
-0
lines changed

.dockerignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.git
2+
**/_cache
3+
app
4+
build-image
5+
cni
6+
contrib
7+
daemonset
8+
dashboard
9+
Documentation
10+
hack
11+
utils
12+
vendor

.goreleaser.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
release:
2+
draft: true
3+
builds:
4+
- main: ./cmd/kube-router
5+
goos:
6+
- linux
7+
goarch:
8+
- amd64
9+
env:
10+
- CGO_ENABLED=0
11+
archive:
12+
format: tar.gz
13+
name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{
14+
.Arm }}{{ end }}'
15+
files:
16+
- LICENSE*
17+
- README*
18+
- CHANGELOG*
19+
- Documentation*
20+
snapshot:
21+
name_template: SNAPSHOT-{{ .Commit }}

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
services:
2+
- docker
3+
4+
language: go
5+
go:
6+
- 1.10.8
7+
8+
branches:
9+
only:
10+
- master
11+
- /^bzub-.*$/
12+
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
13+
- /^PR\d*$/
14+
15+
env:
16+
global:
17+
- REPO=cloudnativelabs/kube-router
18+
- REPO_PATH=$HOME/gopath/src/github.com/$REPO
19+
- GIT_BRANCH=$TRAVIS_BRANCH
20+
21+
script:
22+
- build/travis-test.sh
23+
# All successfully built commits get an image placed in the kube-router-git
24+
# image repo and tagged with the commit hash.
25+
- wget https://github.com/estesp/manifest-tool/releases/download/v1.0.0-rc2/manifest-tool-linux-amd64 -O manifest-tool && chmod +x manifest-tool
26+
- build/travis-deploy.sh
27+
28+
# This fixes issues when a contributor uses their own Travis CI account to test
29+
# code/CI changes.
30+
before_install:
31+
- mkdir -p $REPO_PATH
32+
- rsync -az ${TRAVIS_BUILD_DIR}/ $REPO_PATH
33+
- export TRAVIS_BUILD_DIR=$REPO_PATH
34+
- cd $REPO_PATH

CONTRIBUTING.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
2+
# Contributing to Kube-router
3+
4+
## Summary
5+
6+
This document covers how to contribute to the kube-router project. Kube-router uses github PRs to manage contributions (could be anything from documentation, bug fixes, manifests etc.).
7+
8+
Please read [users guide](./docs/user-guide.md) and [developers guide](/docs/developing.md) for the functionality and internals of kube-router.
9+
10+
## Filing issues
11+
12+
If you have a question about Kube-router or have a problem using it, please start with contacting us on [community forum](https://kubernetes.slack.com/messages/C8DCQGTSB/) for quick help. If that doesn't answer your questions, or if you think you found a bug, please [file an issue](https://github.com/cloudnativelabs/kube-router/issues).
13+
14+
## Contributing Changes
15+
16+
### Fork the code
17+
18+
Navigate to:
19+
[https://github.com/cloudnativelabs/kube-router](https://github.com/cloudnativelabs/kube-router)
20+
and fork the repository.
21+
22+
Follow these steps to setup a local repository for working on Kube-router:
23+
24+
``` bash
25+
$ git clone https://github.com/YOUR_ACCOUNT/kube-router.git
26+
$ cd kube-router
27+
$ git remote add upstream https://github.com/cloudnativelabs/kube-router
28+
$ git checkout master
29+
$ git fetch upstream
30+
$ git rebase upstream/master
31+
```
32+
33+
### Creating A Feature Branch
34+
35+
Create a new branch to make changes on and that branch.
36+
37+
``` bash
38+
$ git checkout -b feature_x
39+
(make your changes)
40+
$ git status
41+
$ git add .
42+
$ git commit -a -m "descriptive commit message for your changes"
43+
```
44+
get update from upstream
45+
46+
``` bash
47+
$ git checkout master
48+
$ git fetch upstream
49+
$ git rebase upstream/master
50+
$ git checkout feature_x
51+
$ git rebase master
52+
```
53+
54+
Now your `feature_x` branch is up-to-date with all the code in `upstream/master`, so push to your fork
55+
56+
### Performing A Pull Request
57+
58+
``` bash
59+
$ git push origin master
60+
$ git push origin feature_x
61+
```
62+
63+
Now that the `feature_x` branch has been pushed to your GitHub repository, you can initiate the pull request.

Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM alpine:3.9
2+
3+
RUN apk add --no-cache \
4+
iptables \
5+
ip6tables \
6+
ipset \
7+
iproute2 \
8+
ipvsadm \
9+
conntrack-tools \
10+
curl \
11+
bash && \
12+
mkdir -p /var/lib/gobgp && \
13+
mkdir -p /usr/local/share/bash-completion && \
14+
curl -L -o /usr/local/share/bash-completion/bash-completion \
15+
https://raw.githubusercontent.com/scop/bash-completion/master/bash_completion
16+
17+
ADD build/image-assets/bashrc /root/.bashrc
18+
ADD build/image-assets/profile /root/.profile
19+
ADD build/image-assets/vimrc /root/.vimrc
20+
ADD build/image-assets/motd-kube-router.sh /etc/motd-kube-router.sh
21+
ADD kube-router gobgp /usr/local/bin/
22+
RUN cd && \
23+
/usr/local/bin/gobgp --gen-cmpl --bash-cmpl-file /var/lib/gobgp/gobgp-completion.bash
24+
25+
WORKDIR "/root"
26+
ENTRYPOINT ["/usr/local/bin/kube-router"]

0 commit comments

Comments
 (0)