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.
This will build and deploy the operator to namespace specified in your configuration file.
134
134
135
+
If you are using a local docker registry you should run the following command.
136
+
The additional `IMG_BUILD_ARGS=--insecure` variable will add the `--insecure` flag to the command creating the manifests.
137
+
This is necessary if your local registry is not secure. Read more about the flag on the [documentatio](https://docs.docker.com/reference/cli/docker/manifest/#working-with-insecure-registries)
138
+
139
+
```sh
140
+
IMG_BUILD_ARGS=--insecure make operator-image deploy
141
+
```
142
+
135
143
136
144
#### See the operator deployment
137
145
```sh
@@ -149,7 +157,7 @@ To remove the operator and any created resources you can run
149
157
make undeploy
150
158
```
151
159
152
-
Alternatively, you can run the operator locally with
160
+
Alternatively, you can run the operator locally. Make sure you follow the steps outlined in [run-operator-locally.md](run-operator-locally.md)
153
161
154
162
```sh
155
163
make run
@@ -168,7 +176,8 @@ make test
168
176
### E2E Tests
169
177
170
178
If this is the first time running E2E tests, you will need to ensure that you have built and pushed
171
-
all images required by the E2E tests. You can do this by running.
179
+
all images required by the E2E tests. You can do this by running the following command,
180
+
or with the additional `IMG_BUILD_ARGS=--insecure` described above.
172
181
173
182
```sh
174
183
make all-images
@@ -180,7 +189,7 @@ For subsequent tests you can use
180
189
make e2e-k8s test=<test-name>
181
190
```
182
191
183
-
This will only re-build the e2e test image.
192
+
This will only re-build the e2e test image. Add `IMG_BUILD_ARGS=--insecure` if necessary
184
193
185
194
We have built a simple mechanism to run E2E tests on your cluster using a runner
186
195
that deploys a series of Kubernetes objects, runs them, and awaits for their
@@ -199,7 +208,7 @@ replica_set_scale
199
208
...
200
209
```
201
210
202
-
The tests should run individually using the runner like this:
211
+
The tests should run individually using the runner like this, or additionally with `IMG_BUILD_ARGS=--insecure`:
Copy file name to clipboardExpand all lines: docs/run-operator-locally.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,17 +18,23 @@ Being able to run and build the binary locally can help with faster feedback-cyc
18
18
- Run e2e tests locally
19
19
20
20
## Running The Operator locally
21
-
1. Use the dedicated make target which exports the needed environment variables and builds & runs the operator binary
22
-
23
-
```sh
24
-
make run
25
-
```
21
+
1. Use the dedicated make target which exports the needed environment variables and builds & runs the operator binary.
22
+
23
+
Before doing that you need to add 2 more fields to the `config.json` file found in [contributing.md](contributing.md), because the python script looks for them in the file:
24
+
-`mdb_local_operator`: needs to be set to `true`, to allow for the operator to be run locally
25
+
-`kubeconfig`: needs to be set to the path of the `kubeconfig` configuration file, for example `$HOME/.kube/config`
26
+
27
+
Then you can run the command:
28
+
29
+
```sh
30
+
make run
31
+
```
26
32
27
33
2. For debugging one can use the following make target, which uses [dlv](https://github.com/go-delve/delve):
28
34
29
-
```sh
30
-
make debug
31
-
```
35
+
```sh
36
+
make debug
37
+
```
32
38
33
39
## Running e2e tests with the local operator
34
40
- 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)
0 commit comments