-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matt Hamilton
committed
May 21, 2020
0 parents
commit b2ee2fd
Showing
62 changed files
with
4,326 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: Bug Report | ||
about: Create a bug report for kubetap | ||
title: '' | ||
labels: 'bug/kubetap' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Description | ||
|
||
Please check the existing issues to make sure you're not duplicating a report. | ||
|
||
## Kubectl commands to create reproducable environment / deployment | ||
|
||
```sh | ||
``` | ||
|
||
## Screenshots or other information | ||
|
||
Go version: | ||
Kubernetes client version: | ||
Kubernetes server version: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blank_issues_enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Feature Request | ||
about: Create a feature request | ||
title: '' | ||
labels: 'feat' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Feature Description | ||
|
||
|
||
|
||
## Proposed Solution | ||
|
||
|
||
|
||
## Alternative Solutions | ||
|
||
|
||
|
||
## Additional Context | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: docs | ||
on: | ||
push: | ||
branches: [master] | ||
paths: | ||
- 'docs/**.md' | ||
|
||
jobs: | ||
docs: | ||
timeout-minutes: 5 | ||
name: Update documentation site | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- | ||
name: Setup Python env | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install mkdocs mkdocs-material | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Setup Git | ||
run: git config user.email "devnull@soluble.ai" && git config user.name "kubetap-bot" | ||
- | ||
name: Update Docs | ||
run: | | ||
mkdocs build | ||
cp -R ./site/* . | ||
git clean -fX site | ||
- | ||
name: Add changes | ||
run: | | ||
git add . | ||
git stash | ||
git fetch --all | ||
git checkout --progress gh-pages | ||
git merge -Xtheirs master | ||
git merge --squash -Xtheirs stash | ||
git add . | ||
git commit -a -m "Update docs" | ||
git push origin gh-pages --force | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.SOLUBLE_KUBETAP_BOT_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: PR kubectl-tap | ||
on: | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
timeout-minutes: 15 | ||
name: Go build kubectl-tap | ||
runs-on: ubuntu-latest | ||
env: | ||
GOFLAGS: -mod=readonly | ||
GOPROXY: https://proxy.golang.org | ||
strategy: | ||
matrix: | ||
go: | ||
- '1.13' | ||
- '1.14' | ||
steps: | ||
- | ||
name: Setup Go env | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- | ||
name: Install Dependencies | ||
run: sudo apt-get update; sudo apt-get install zsh kubectl | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Unit Test | ||
run: ./scripts/test.zsh | ||
- | ||
name: Integration Test | ||
run: ./scripts/ig-test.zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
name: kubectl-tap | ||
on: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
timeout-minutes: 15 | ||
name: Go build kubectl-tap | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Setup Go env | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.14.2' | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- | ||
name: Install packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install zsh kubectl | ||
- | ||
name: Build | ||
run: ./scripts/build.zsh | ||
- | ||
name: Unit Test | ||
run: ./scripts/test.zsh | ||
- | ||
name: Integration Test | ||
run: ./scripts/ig-test.zsh | ||
|
||
docker-build-scratch: | ||
timeout-minutes: 10 | ||
name: Build and push kubectl-tap to GCR | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Build binary and push to GCR | ||
uses: docker/build-push-action@v1 | ||
with: | ||
path: . | ||
dockerfile: Dockerfile | ||
username: _json_key | ||
password: ${{ secrets.SOLUBLE_GCR_OSS_JSON }} | ||
registry: gcr.io | ||
repository: soluble-oss/kubectl-tap | ||
tags: latest | ||
|
||
docker-build-alpine: | ||
timeout-minutes: 10 | ||
name: Build and push kubectl-tap to GCR | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Build binary and push to GCR | ||
uses: docker/build-push-action@v1 | ||
with: | ||
path: . | ||
dockerfile: Dockerfile.alpine | ||
username: _json_key | ||
password: ${{ secrets.SOLUBLE_GCR_OSS_JSON }} | ||
registry: gcr.io | ||
repository: soluble-oss/kubectl-tap | ||
tags: alpine | ||
|
||
release: | ||
timeout-minutes: 15 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
needs: [build, docker-build-scratch, docker-build-alpine] | ||
name: Release kubectl-tap | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Setup Go env | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.14.2' | ||
- | ||
name: Install zsh | ||
run: sudo apt-get update; sudo apt-get install zsh | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Unshallow for goreleaser | ||
run: git fetch --prune --unshallow | ||
- | ||
name: Build | ||
run: ./scripts/build.zsh | ||
- | ||
name: Release | ||
uses: goreleaser/goreleaser-action@v1.5.0 | ||
with: | ||
version: v0.132.1 | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.SOLUBLE_KUBETAP_BOT_TOKEN }} | ||
- | ||
name: Update homebrew-tap | ||
if: "!contains(github.ref, '-')" # skip RCs | ||
uses: mislav/bump-homebrew-formula-action@v1.6 | ||
with: | ||
formula-name: kubetap | ||
homebrew-tap: soluble-ai/homebrew-kubetap | ||
branch: master | ||
env: | ||
COMMITTER_TOKEN: ${{ secrets.SOLUBLE_KUBETAP_BOT_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Push gcr.io/soluble-oss/kubetap-mitmproxy | ||
on: | ||
# rebuild and push the container, updating dependencies, every 6 hours | ||
schedule: | ||
- cron: '0 */6 * * *' | ||
push: | ||
branches: [master] | ||
paths: | ||
- 'proxies/mitmproxy' | ||
|
||
jobs: | ||
kubetap-mitmproxy: | ||
timeout-minutes: 5 | ||
name: Build and push mitmproxy to GCR | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Push to GCR | ||
uses: docker/build-push-action@v1 | ||
with: | ||
path: ./proxies/mitmproxy | ||
username: _json_key | ||
password: ${{ secrets.SOLUBLE_GCR_OSS_JSON }} | ||
registry: gcr.io | ||
repository: soluble-oss/kubetap-mitmproxy | ||
tags: latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
*.swp | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
*.test | ||
*.out | ||
.DS_Store | ||
cmd/kubectl-tap/kubectl-tap | ||
kubectl-tap | ||
!kubectl-tap/ | ||
dist/* | ||
ci.mod | ||
ci.sum | ||
ig-tests.mod | ||
ig-tests.sum | ||
docs/_book/ | ||
*_original | ||
site/ | ||
.vim/ | ||
venv/ | ||
coverage.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
run: | ||
tests: false | ||
timeout: 5m | ||
skip-dirs: | ||
- hack | ||
- proxies | ||
linters: | ||
enable-all: true | ||
disable: | ||
- wsl | ||
- lll | ||
- funlen | ||
- godox | ||
- gomnd | ||
- gocognit | ||
- goerr113 |
Oops, something went wrong.