Sloop uses GitHub to manager reviews of pull requests
ADD
ADD
Sloop uses go modules.
This requires a working Go environment with version 1.13 or greater installed.
It is suggested you set export GO111MODULE=on
To add or update a new dependency:
- use
go get
to pull in the new dependency - run
go mod tidy
When changing schema in pkg/sloop/store/typed/schema.proto you will need to do the following:
- Install protobuf. On OSX you can do
brew install protobuf
- Grab protoc-gen-go with
go get -u github.com/golang/protobuf/protoc-gen-go
- Run this makefile target:
make protobuf
Sloop uses genny to code-gen typed table wrappers. Any changes to pkg/sloop/store/typed/tabletemplate*.go
will need
to be followed with go generate
. We have a Makefile target for this: make generate
Sloop uses prometheus to emit metrics, which is very helpful for performance debugging. In the root of the repo is a prometheus config.
On OSX you can install prometheus with brew install prometheus
. Then simply start it from the sloop directory by running prometheus
Open your browser to http://localhost:9090.
An example of a useful query is rate(kubewatch_event_count[5m])