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
@@ -25,21 +26,24 @@ Once you set your user.name and user.email in your git config, you can sign your
25
26
26
27
### Issues
27
28
28
-
If you spot a problem with the **devfile registry operator**, [search if an issue already exists](https://github.com/devfile/api/issues?q=is%3Aissue+is%3Aopen+label%3Aarea%2Fregistry).
29
+
If you spot a problem with the **devfile registry operator**, [search if an issue already exists](https://github.com/devfile/api/issues?q=is%3Aissue+is%3Aopen+label%3Aarea%2Fregistry).
29
30
30
31
If a related issue doesn't exist, you can open a new issue using a relevant [issue form](https://github.com/devfile/api/issues/new/choose). You can tag Devfile Registry Operator related issues with the `/area registry` text in your issue.
31
32
32
33
### Development
33
34
34
35
#### First Time Setup
36
+
35
37
1. Install prerequisites: see [Requirements section in README](README.md#requirements).
36
38
37
39
2. Fork and clone this repository.
38
40
39
41
3. Open the folder in the IDE of your choice (VS Code with Go extension, or GoLand is recommended)
40
42
41
43
#### Build and Run the Operator
44
+
42
45
The Makefile currently supports both Docker and Podman. To run the proper command replace `<engine>` with either `podman` or `docker` depending on your container engine.
46
+
43
47
1. Log in to an OpenShift or Kubernetes cluster
44
48
45
49
2. Run `export IMG=<operator-image>` where `<operator-image>` is the image repository to where you would like to push the image (e.g. `quay.io/user/registry-operator:latest`).
@@ -60,7 +64,7 @@ The Makefile currently supports both Docker and Podman. To run the proper comman
60
64
61
65
By default, http/2 on the webhook server is disabled due to [CVE-2023-44487](https://github.com/advisories/GHSA-qppj-fm5r-hxr3).
62
66
63
-
If you want to enable http/2 for the webhook server, build with `ENABLE_WEBHOOK_HTTP2=true make <engine>-build` or with
67
+
If you want to enable http/2 for the webhook server, build with `ENABLE_WEBHOOK_HTTP2=true make <engine>-build` or with
64
68
`ENABLE_WEBHOOK_HTTP2=true make run` if running locally.
65
69
66
70
##### Using other platforms
@@ -124,15 +128,18 @@ You can use `make <engine>-build` to build your own image, `make <engine>-push`
124
128
<!--
125
129
Will need to be updated after the completion of https://github.com/devfile/api/issues/1523
126
130
-->
131
+
127
132
In order for `make test-integration` to properly run you must first ensure your environment is prepared for the operator. The following steps should be done **before** running `make test-integration` and
128
133
these commands should be run from the root of the repository where the [`Makefile`](Makefile) is located.
134
+
129
135
1. Run `make install-cert` and wait for pods in the `cert-manager` namespace to be running before moving to step 2.
130
136
2. Run `make install && make deploy` and wait until pods in the `registry-operator-system` namespace are running before proceeding to step 3.
131
137
3. Run `make test-integration` or `IMG=<your-operator-image> make test-integration` to run the integration tests.
132
138
133
139
### Submitting Pull Request
134
140
135
141
**Note:** All commits must be signed off with the footer:
0 commit comments