Skip to content

Commit

Permalink
fix(forward): use port-forward to connect agent (aylei#26)
Browse files Browse the repository at this point in the history
* chore(Gopkg): update Gopkg file

* chore(travis): update travis file

* fix(forward): use port-forward to connect agent

* chore(README): update README.md
  • Loading branch information
whalecold authored and aylei committed Apr 2, 2019
1 parent ecfad9d commit 3b56219
Show file tree
Hide file tree
Showing 6 changed files with 307 additions and 39 deletions.
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@ services:
- docker
language: go
go:
- "1.10.x"
- "1.12.x"
env:
- DEP_VERSION="0.4.1"
- DEP_VERSION="0.5.1"

before_install:
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep

install:
- dep ensure
- dep ensure -v

before_script:
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) # All the .go files, excluding vendor/
- go get honnef.co/go/tools/cmd/megacheck
- go get honnef.co/go/tools/cmd/staticcheck

script:
- test -z $(gofmt -s -l $GO_FILES) # Fail if a .go file hasn't been formatted with gofmt
- go test -v -race ./... # Run all the tests with the race detector enabled
- go vet ./... # go vet is the official Go static analyzer
- megacheck ./... # "go vet on steroids" + linter
- echo $GO_FILES | xargs gofmt -l # Fail if a .go file hasn't been formatted with gofmt
- go test -v -race ./... # Run all the tests with the race detector enabled
- go vet ./... # go vet is the official Go static analyzer
- staticcheck ./... # "go vet on steroids" + linter

before_deploy:
- GOOS=linux GARCH=amd64 go build -o debug-agent ./cmd/agent
Expand Down
170 changes: 161 additions & 9 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[[constraint]]
name = "k8s.io/cli-runtime"
source = "github.com/kubernetes/cli-runtime"
branch = "master"
version = "kubernetes-1.13.4"

[[constraint]]
name = "github.com/spf13/pflag"
Expand All @@ -25,4 +25,8 @@

[[constraint]]
name = "k8s.io/client-go"
version = "10.0.0"
version = "kubernetes-1.13.4"

[[constraint]]
name = "k8s.io/apimachinery"
version = "kubernetes-1.13.4"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ You can override the default image and entrypoint with cli flag, or even better,

```yaml
agent_port: 10027
app_name: debug-agent
image: nicolaka/netshoot:latest
command:
- '/bin/bash'
Expand Down
Loading

0 comments on commit 3b56219

Please sign in to comment.