Skip to content

Commit f862385

Browse files
2 parents e7b2a02 + 011b7aa commit f862385

File tree

3,055 files changed

+9484
-1125458
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,055 files changed

+9484
-1125458
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Report a bug
3+
about: Create a bug report to help us improve kube-router
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**What happened?**
11+
A clear and concise description of what the bug is.
12+
13+
**What did you expect to happen?**
14+
A clear and concise description of what you expected to happen.
15+
16+
**How can we reproduce the behavior you experienced?**
17+
Steps to reproduce the behavior:
18+
1. Step 1
19+
2. Step 2
20+
3. Step 3
21+
4. Step 4
22+
23+
**Screenshots / Architecture Diagrams / Network Topologies **
24+
If applicable, add those here to help explain your problem.
25+
26+
** System Information (please complete the following information):**
27+
- Kube-Router Version (`kube-router --version`): [e.g. 1.0.1]
28+
- Kube-Router Parameters: [e.g. --run-router --run-service-proxy --enable-overlay --overlay-type=full etc.]
29+
- Kubernetes Version (`kubectl version`) : [e.g. 1.18.3]
30+
- Cloud Type: [e.g. AWS, GCP, Azure, on premise]
31+
- Kubernetes Deployment Type: [e.g. EKS, GKE, Kops, Kubeadm, etc.]
32+
- Kube-Router Deployment Type: [e.g. DaemonSet, System Service]
33+
- Cluster Size: [e.g. 200 Nodes]
34+
35+
** Logs, other output, metrics **
36+
Please provide logs, other kind of output or observed metrics here.
37+
38+
**Additional context**
39+
Add any other context about the problem here.
40+

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Kube-Router Channel on Kubernetes Slack
4+
url: https://kubernetes.slack.com/messages/C8DCQGTSB
5+
about: Please ask and answer questions here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for kube-router
4+
title: ''
5+
labels: feature
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is and what the feature provides.
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: continuous-integration
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- v[1-9].*
8+
tags:
9+
- v[1-9].*
10+
pull_request:
11+
branches:
12+
- master
13+
- v[1-9].*
14+
15+
jobs:
16+
ci-go-lint:
17+
name: ci-go-lint
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Set up Go 1.x
21+
uses: actions/setup-go@v2
22+
with:
23+
go-version: ~1.16.4
24+
id: go
25+
26+
- name: Check out code into the Go module directory
27+
uses: actions/checkout@v2
28+
29+
- name: Lint kube-router code
30+
run: |
31+
make lint
32+
33+
ci-unit-tests:
34+
name: ci-unit-tests
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Set up Go 1.x
38+
uses: actions/setup-go@v2
39+
with:
40+
go-version: ~1.16.4
41+
id: go
42+
43+
- name: Check out code into the Go module directory
44+
uses: actions/checkout@v2
45+
46+
- name: Run unit tests for kube-router
47+
run: |
48+
make test
49+
50+
ci-build-kube-router:
51+
name: ci-build-kube-router
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Set up Go 1.x
55+
uses: actions/setup-go@v2
56+
with:
57+
go-version: ~1.16.4
58+
id: go
59+
60+
- name: Check out code into the Go module directory
61+
uses: actions/checkout@v2
62+
63+
- name: Build kube-router
64+
run: |
65+
make kube-router
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: "Code Scanning - Action"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- v*
8+
pull_request:
9+
schedule:
10+
# ┌───────────── minute (0 - 59)
11+
# │ ┌───────────── hour (0 - 23)
12+
# │ │ ┌───────────── day of the month (1 - 31)
13+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
14+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
15+
# │ │ │ │ │
16+
# │ │ │ │ │
17+
# │ │ │ │ │
18+
# * * * * *
19+
- cron: '30 1 * * 0'
20+
21+
jobs:
22+
CodeQL-Build:
23+
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v2
29+
30+
# Initializes the CodeQL tools for scanning.
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v1
33+
# Override language selection by uncommenting this and choosing your languages
34+
# with:
35+
# languages: go, javascript, csharp, python, cpp, java
36+
37+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38+
# If this step fails, then you should remove it and run the build manually (see below).
39+
- name: Autobuild
40+
uses: github/codeql-action/autobuild@v1
41+
42+
# ℹ️ Command-line programs to run using the OS shell.
43+
# 📚 https://git.io/JvXDl
44+
45+
# ✏️ If the Autobuild fails above, remove it and uncomment the following
46+
# three lines and modify them (or add more) to build your code if your
47+
# project uses a compiled language
48+
49+
# - run: |
50+
# make bootstrap
51+
# make release
52+
53+
- name: Perform CodeQL Analysis
54+
uses: github/codeql-action/analyze@v1

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.vscode
2+
.idea
23
/kube-router
34
/gobgp
45
_output
56
_cache
6-
Dockerfile.amd64.run
7+
vendor

.golangci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
run:
2+
timeout: 5m
3+
linters:
4+
disable-all: true
5+
enable:
6+
- deadcode
7+
- errcheck
8+
- gofmt
9+
- goimports
10+
- golint
11+
- gosimple
12+
- govet
13+
- ineffassign
14+
- misspell
15+
- staticcheck
16+
- structcheck
17+
- typecheck
18+
- unused
19+
- varcheck
20+
output:
21+
format: tab
22+
print-issued-lines: true
23+
print-linter-name: true

.goreleaser.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,28 @@ builds:
66
- linux
77
goarch:
88
- amd64
9+
- arm
10+
- arm64
11+
- ppc64le
12+
- s390x
13+
goarm:
14+
- 6
15+
- 7
916
env:
1017
- 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*
18+
ldflags:
19+
- "-X github.com/cloudnativelabs/kube-router/pkg/version.Version={{.Version}}"
20+
- "-X github.com/cloudnativelabs/kube-router/pkg/version.BuildDate={{.Date}}"
21+
22+
archives:
23+
-
24+
format: tar.gz
25+
name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{
26+
.Arm }}{{ end }}'
27+
files:
28+
- LICENSE*
29+
- README*
30+
- CHANGELOG*
31+
- Documentation*
2032
snapshot:
2133
name_template: SNAPSHOT-{{ .Commit }}

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ services:
33

44
language: go
55
go:
6-
- 1.10.8
6+
- 1.16.x
77

88
branches:
99
only:
1010
- master
11-
- /^bzub-.*$/
1211
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
1312
- /^PR\d*$/
13+
- /.*/
1414

1515
env:
1616
global:
@@ -19,10 +19,9 @@ env:
1919
- GIT_BRANCH=$TRAVIS_BRANCH
2020

2121
script:
22-
- build/travis-test.sh
23-
# All successfully built commits get an image placed in the kube-router-git
22+
# All built commits get an image placed in the kube-router-git
2423
# 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
24+
- wget https://github.com/estesp/manifest-tool/releases/download/v1.0.2/manifest-tool-linux-amd64 -O manifest-tool && chmod +x manifest-tool
2625
- build/travis-deploy.sh
2726

2827
# This fixes issues when a contributor uses their own Travis CI account to test

0 commit comments

Comments
 (0)