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
> Note: Some Controller and API tests run a real Kubernetes API/etcd via the [`envtest`](https://book.kubebuilder.io/reference/envtest.html) package. These tests rely on the CRDs from `controllers` subdirectory.
22
+
> **Note**
23
+
> Some Controller and API tests run a real Kubernetes API/etcd via the [`envtest`](https://book.kubebuilder.io/reference/envtest.html) package. These tests rely on the CRDs from the `controllers` subdirectory.
23
24
> To update these CRDs use the `make generate` target described below.
24
25
25
-
> Note: e2e tests deploy korifi to a local kind cluster configured with port forwarding and a local docker registry before running a set of tests to interact with the CloudFoundry API. This test suite will fail if you already have Korifi deployed locally on a standard kind cluster, or you have some other process using ports 80 or 443.
26
+
> **Note**
27
+
> End-to-end tests deploy Korifi to a local `kind` cluster configured with port forwarding and a local Docker registry before running a set of tests to interact with the Cloud Foundry API. This test suite will fail if you already have Korifi deployed locally on a standard `kin`d cluster, or you have some other process using ports `80` or `443`.
26
28
27
29
## Deploying locally
28
30
29
-
This is the easiest method for deploying a kick-the-tires installation, or testing code changes end-to-end. It deploys Korifi on a local kind cluster with a local docker registry.
31
+
This is the easiest method for deploying a kick-the-tires installation, or testing code changes end-to-end. It deploys Korifi on a local `kind` cluster with a local Docker registry.
30
32
31
-
```
32
-
./scripts/deploy-on-kind <kind-cluster-name>
33
+
```sh
34
+
./scripts/deploy-on-kind.sh<kind-cluster-name>
33
35
```
34
36
35
37
### User Permissions Disclaimer
36
38
37
-
When using the deploy-on-kind script, you will get a separate `cf-admin` user by default with which to interact with the cf api.
39
+
When using `scripts/deploy-on-kind.sh`, you will get a separate `cf-admin` user by default with which to interact with the CF API.
38
40
39
-
So when prompted to select a user by the cli you may see something like:
41
+
So when prompted to select a user by the CLI you may see something like:
40
42
41
-
```
43
+
```sh
42
44
$ cf login
43
45
API endpoint: https://localhost
44
46
@@ -54,10 +56,10 @@ successfully create resources, but you may notice that the user lacks the permis
54
56
This is the above method, but run with `dlv` for remote debugging.
To remote debug, connect with `dlv` on `localhost:30051` (controller) or `localhost:30052` (api).
62
+
To remote debug, connect with `dlv` on `localhost:30051` (`controllers`) or `localhost:30052` (`api`).
61
63
62
64
A sample VSCode `launch.json` configuration is provided below:
63
65
@@ -100,21 +102,19 @@ A sample VSCode `launch.json` configuration is provided below:
100
102
101
103
```
102
104
103
-
> Note also that images build for debugging are based on an Ubuntu container
104
-
> image, rather than distroless, so deploying with --debug is useful if you plan
105
-
> to `kubectl exec` into the running containers for any reason.
105
+
> **Note**
106
+
> Images built for debugging are based on an Ubuntu container image, rather than distroless, so deploying with `--debug` is useful if you plan to `kubectl exec` into the running containers for any reason.
106
107
107
108
## Image tagging conventions
108
109
109
-
We store korifi docker images on docker hub.
110
+
We store Korifi container images on [DockerHub](https://hub.docker.com/u/cloudfoundry).
0 commit comments