Skip to content

Commit

Permalink
chore: spelling & grammar & dep bump
Browse files Browse the repository at this point in the history
  • Loading branch information
puffitos committed Oct 16, 2023
1 parent edad85b commit 6c946ed
Show file tree
Hide file tree
Showing 9 changed files with 244 additions and 47 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Have look at the struct `RoutineConfiguration` and the func `StandardProductionR

### 2. SetupConfiguration (`mesh/config.go@SetupConfiguration`)

Have look at the struct for detailed information. Please checkout the [documentation](#documentation) below.
Have a look at the struct for detailed information. Please check out the [documentation](#documentation) below.

## Code of Conduct

Expand All @@ -142,7 +142,10 @@ This project has adopted the [Contributor Covenant](https://www.contributor-cove

We decided to apply *English* as the primary project language.

Consequently, all content will be made available primarily in English. We also ask all interested people to use English as language to create issues, in their code (comments, documentation etc.) and when you send requests to us. The application itself and all end-user facing content will be made available in other languages as needed.
Consequently, all content will be made available primarily in English.
We also ask all interested people to use English as the preferred language to create issues,
in their code (comments, documentation, etc.) and when you send requests to us.
The application itself and all end-user facing content will be made available in other languages as needed.

## Documentation

Expand Down Expand Up @@ -277,7 +280,7 @@ Use the offered CLI options or use environment variables with a 'MESH' prefix e.

Canary data will be exposed at `/metrics`. Authorization is required.
Use the token passed to the canary by flag `--token` for authorization (if you did not set the token yourself, it will be generated and exposed to stdout).
Currently the `node_count` and histogram metrics (`rtt` buckets) from the requested pod are available.
Currently, the `node_count` and histogram metrics (`rtt` buckets) from the requested pod are available.

## Support and Feedback

Expand Down
4 changes: 2 additions & 2 deletions api/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (a *Api) NewAuthHandler(h http.Handler) http.Handler {
// check if token is correct
for _, t := range a.config.Tokens {
if authToken == t {
a.log.Infow("Request", "host", r.Header.Get("X-Forwarded-Host"), "auth", "succeded")
a.log.Infow("Request", "host", r.Header.Get("X-Forwarded-Host"), "auth", "succeeded")
h.ServeHTTP(w, r)
return
}
Expand Down Expand Up @@ -78,7 +78,7 @@ func (a *Api) NewAuthInterceptor() connect.UnaryInterceptorFunc {
// check if token is correct
for _, t := range a.config.Tokens {
if authToken == t {
a.log.Infow("Request", "host", req.Header().Get("X-Forwarded-Host"), "auth", "succeded")
a.log.Infow("Request", "host", req.Header().Get("X-Forwarded-Host"), "auth", "succeeded")
return next(ctx, req)
}
}
Expand Down
4 changes: 2 additions & 2 deletions data/data_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ func Test_shuffleNodes(t *testing.T) {
maxTries := 20
firstId := nodes[0].Id
for i := 0; i < maxTries; i++ {
shuffeledNodes := shuffleNodes(nodes)
if shuffeledNodes[0].Id != firstId {
shuffledNodes := shuffleNodes(nodes)
if shuffledNodes[0].Id != firstId {
return
}
}
Expand Down
4 changes: 2 additions & 2 deletions data/data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ func Test_GetSampleId(t *testing.T) {
name: "Normal sample",
sample: &Sample{
From: "Eagle",
To: "Gose",
To: "Goose",
Key: 1,
},
expectedId: value(h.Hash("EagleGose1")),
expectedId: value(h.Hash("EagleGoose1")),
},
{
name: "Empty samples",
Expand Down
52 changes: 29 additions & 23 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ module github.com/telekom/canary-bot
go 1.21

require (
github.com/spf13/viper v1.15.0
go.uber.org/zap v1.24.0
google.golang.org/genproto v0.0.0-20230320184635-7606e756e683
google.golang.org/grpc v1.53.0
google.golang.org/protobuf v1.30.0
github.com/spf13/viper v1.17.0
go.uber.org/zap v1.26.0
google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b
google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b
google.golang.org/grpc v1.58.3
google.golang.org/protobuf v1.31.0
)

require (
Expand All @@ -17,35 +18,40 @@ require (
github.com/golang/protobuf v1.5.3 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.7 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.44.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/sagikazarmark/locafero v0.3.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.10.0 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/text v0.8.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/text v0.13.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

require (
github.com/bufbuild/connect-go v1.5.2
github.com/bufbuild/connect-go v1.10.0
github.com/go-test/deep v1.0.8
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-memdb v1.3.4
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/golang-lru v1.0.2 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/prometheus/client_golang v1.14.0
github.com/spf13/cobra v1.6.1
github.com/prometheus/client_golang v1.17.0
github.com/spf13/cobra v1.7.0
github.com/spf13/pflag v1.0.5
golang.org/x/net v0.8.0
golang.org/x/sys v0.6.0 // indirect
golang.org/x/net v0.17.0
golang.org/x/sys v0.13.0 // indirect
)
Loading

0 comments on commit 6c946ed

Please sign in to comment.