Skip to content

Commit ac5557d

Browse files
authored
Minor fix (#10)
* fix compile #8 * other fix * update readme
1 parent e21b283 commit ac5557d

File tree

4 files changed

+69
-11
lines changed

4 files changed

+69
-11
lines changed

README.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ Like KubeOrbit idea? ⭐ Give us a GitHub Star! ⭐
1212

1313
![work in progress badge](https://img.shields.io/badge/stability-work_in_progress-lightgrey.svg?style=flat-square)
1414
[![Apache License 2.0](https://img.shields.io/github/license/teamcode-inc/kubeorbit?style=flat-square)](https://github.com/teamcode-inc/kubeorbit/blob/master/LICENSE)
15-
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/teamcode2021/kubeorbit?style=flat-square)
1615
[![Discord channel](https://img.shields.io/discord/930779108818956298?style=flat-square)](https://discord.gg/5XaTS9VArf)
1716

1817

19-
**KubeOrbit** is an open-source abstraction layer library that turns easy apps testing&debuging on Kubernetes in a new way. Our KubeOrbit is meant to create a channel automatically. You can *test* your *cloud-native* applications through this channel in a *hands-free* style.
18+
**KubeOrbit** is an open-source tool that turns easy apps testing&debuging on Kubernetes in a new way. Our KubeOrbit is meant to create a channel automatically. You can *test* your *cloud-native* applications through this channel in a *hands-free* style.
2019

2120
It solves the following problems during integration tests:
2221
- Under limited resource and restricted environment, developers in a team may be blocked by others who are testing their own functionalities, and it slows down the development progress.
@@ -28,20 +27,17 @@ It solves the following problems during integration tests:
2827

2928
## Features
3029
From now on, stop testing your application in local infra naively. Also, no more endless efforts in managing various cloud-based test environments.
31-
- **Workload tag**: tag your workload by creating a new channel. Then your request can be routed to the right workload replica, where you can work with your mates to test&debug the same feature together.
3230
- **KubeOrbit CLI**: just using one command, forward the traffic from in-cluster service to local service in a flash, no matter your service discovery is based on Eureka, Consul, Nacos or Kubernetes SVC.
3331
- **Protocol support**: various protocols based on Layer-7 are supported. HTTP, gRPC, Thrift, Dubbo ...
34-
- **Cost-effective**: when test your app, you don't need to configure the *entire* infra environment. Save your costs by using less resource according to your *incremental* environment request only. That is, you can have an isolated environment built from your base environment, which is achieved by KubeOrbit's high-scalability.
32+
- **Workload tag**: tag your workload by creating a new channel. Then your request can be routed to the right workload replica, where you can work with your mates to test&debug the same feature together.
33+
3534

3635
## Getting Started
3736
With the following tutorials:
3837

3938
**KubeOrbit CLI**:
4039
* [Getting started](https://www.kubeorbit.io/docs/local-development)
41-
42-
**KubeOrbit**:
43-
* [Before you begin](https://www.kubeorbit.io/docs/before-you-begin)
44-
* [Getting started](https://www.kubeorbit.io/docs/getting-started)
40+
* [How to build](https://www.kubeorbit.io/docs/how-to-build)
4541

4642

4743
## Contributing

go.mod

+63-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module kubeorbit.io
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/go-logr/logr v1.2.0
@@ -19,3 +19,65 @@ require (
1919
k8s.io/client-go v0.23.0
2020
sigs.k8s.io/controller-runtime v0.11.0
2121
)
22+
23+
require (
24+
cloud.google.com/go v0.81.0 // indirect
25+
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
26+
github.com/Azure/go-autorest/autorest v0.11.18 // indirect
27+
github.com/Azure/go-autorest/autorest/adal v0.9.13 // indirect
28+
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
29+
github.com/Azure/go-autorest/logger v0.2.1 // indirect
30+
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
31+
github.com/beorn7/perks v1.0.1 // indirect
32+
github.com/cespare/xxhash/v2 v2.1.1 // indirect
33+
github.com/davecgh/go-spew v1.1.1 // indirect
34+
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
35+
github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect
36+
github.com/fsnotify/fsnotify v1.5.1 // indirect
37+
github.com/go-logr/zapr v1.2.0 // indirect
38+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
39+
github.com/golang/protobuf v1.5.2 // indirect
40+
github.com/google/gofuzz v1.1.0 // indirect
41+
github.com/google/uuid v1.1.2 // indirect
42+
github.com/googleapis/gnostic v0.5.5 // indirect
43+
github.com/imdario/mergo v0.3.12 // indirect
44+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
45+
github.com/json-iterator/go v1.1.12 // indirect
46+
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
47+
github.com/moby/spdystream v0.2.0 // indirect
48+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
49+
github.com/modern-go/reflect2 v1.0.2 // indirect
50+
github.com/nxadm/tail v1.4.8 // indirect
51+
github.com/pkg/errors v0.9.1 // indirect
52+
github.com/prometheus/client_golang v1.11.0 // indirect
53+
github.com/prometheus/client_model v0.2.0 // indirect
54+
github.com/prometheus/common v0.28.0 // indirect
55+
github.com/prometheus/procfs v0.6.0 // indirect
56+
github.com/spf13/pflag v1.0.5 // indirect
57+
go.uber.org/atomic v1.7.0 // indirect
58+
go.uber.org/multierr v1.6.0 // indirect
59+
go.uber.org/zap v1.19.1 // indirect
60+
golang.org/x/net v0.0.0-20210825183410-e898025ed96a // indirect
61+
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
62+
golang.org/x/sys v0.0.0-20211029165221-6e7872819dc8 // indirect
63+
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
64+
golang.org/x/text v0.3.7 // indirect
65+
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
66+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
67+
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
68+
google.golang.org/appengine v1.6.7 // indirect
69+
google.golang.org/protobuf v1.27.1 // indirect
70+
gopkg.in/inf.v0 v0.9.1 // indirect
71+
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
72+
gopkg.in/yaml.v2 v2.4.0 // indirect
73+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
74+
istio.io/gogo-genproto v0.0.0-20211208193508-5ab4acc9eb1e // indirect
75+
k8s.io/apiextensions-apiserver v0.23.0 // indirect
76+
k8s.io/component-base v0.23.0 // indirect
77+
k8s.io/klog/v2 v2.30.0 // indirect
78+
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
79+
k8s.io/utils v0.0.0-20210930125809-cb0fa318a74b // indirect
80+
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
81+
sigs.k8s.io/structured-merge-diff/v4 v4.2.0 // indirect
82+
sigs.k8s.io/yaml v1.3.0 // indirect
83+
)

pkg/cli/core/channel.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ func (c *ChannelListener) ForwardToLocal() error {
9494
localConn, err := net.Dial("tcp", localPortAddress)
9595
if err != nil {
9696
sshConn.Close()
97-
break
9897
log.Errorf("connection err %v", err)
98+
break
9999
}
100100
go func() {
101101
var wg sync.WaitGroup

pkg/cli/core/forward.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func init() {
4141
var namespace, deploymentName string
4242

4343
func setupCloseHandler() {
44-
c := make(chan os.Signal)
44+
c := make(chan os.Signal, 1)
4545
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
4646
go func() {
4747
<-c

0 commit comments

Comments
 (0)