You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
# Quick start for building and running the operator locally
2
+
3
+
This document contains a quickstart guide to build and running (+debugging) the operator locally.
4
+
Being able to run and build the binary locally can help with faster feedback-cycles.
5
+
6
+
## Prerequisites
7
+
- Follow the general setup to be able to run e2e tests locally with our suite as described here, which includes the usage of [telepresence](https://www.getambassador.io/docs/telepresence/latest/quick-start/):
- If above has been configured there should be either:
11
+
-`$HOME/.kube/config`
12
+
-`KUBECONFIG` environment variable pointing at a file
13
+
-**Note**: either of these are necessary to be able to run the operator locally
14
+
- Have a folder `.community-operator-dev`
15
+
## Goals
16
+
- Run the operator locally as a binary (optionally in debug mode) in command line or in an IDE
17
+
- Run e2e tests locally
18
+
19
+
## Running The Operator locally
20
+
1. Use the dedicated make target which exports the needed environment variables and builds & runs the operator binary
21
+
22
+
```sh
23
+
make run
24
+
```
25
+
26
+
2. For debugging one can use the following make target, which uses [dlv](https://github.com/go-delve/delve):
27
+
28
+
```sh
29
+
make debug
30
+
```
31
+
32
+
## Running e2e tests with the local operator
33
+
- Our [e2e tests](../test/e2e), contains sub-steps that will install the following helm-chart: [operator.yaml](../helm-charts/charts/community-operator/templates/operator.yaml)
34
+
- By default, the template chart sets the number of operator replicas to `1`. This will clash with our local running operator. With this in mind the solution is to set the replicas number to `0` temporarily.
35
+
- Follow the guide on how to run `e2e` tests as described in our [contributing.md](contributing.md), for instance:
0 commit comments