The following tools are required to start developing on the Sentry operator:
go v1.13+kind v0.8.1+docker v17.03+kubectl v1.11.3+kustomize v3.1.0+kubebuilder v2.3.1+
You can install Kubebuilder and Kustomize by running:
./scripts/install.shYou should also have a Sentry organization to test your changes against. It is recommended to create a sandbox account for this.
For the operator to communicate with the Sentry API, you will need to provide an authentication token from a user under your organization, with the following scopes:
org:admin,org:write,org:readteam:admin,team:write,team:readproject:admin,project:write,project:read
-
Start a local Kubernetes cluster using
kind:make cluster
-
Install the CRDs into your cluster:
make install
-
Create a
.envfile in the repository's root containing the following environment variables:SENTRY_ORGANIZATION=<organization> # The slug of your Sentry organization SENTRY_TOKEN=<token> # Your Sentry authentication token
-
Run the operator locally:
make run -
Write your code and verify the expected behaviour against your Sentry organization. Also include any appropriate tests.
-
Run all test suites:
make test