Skip to content

Commit

Permalink
docs: Fix local test setup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
c-pius committed Apr 4, 2024
1 parent 90a83e9 commit ef34f7a
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions docs/developer-tutorials/local-test-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@ This setup is deployed with the following security features enabled:

<details>
<summary>Custom Lifecycle Manager image deployment</summary>
If you want to test a custom image of Lifecycle Manager, adapt the `IMG` variable in `Makefile` and run the following:
If you want to test a custom image of Lifecycle Manager, run the following:

```shell
make docker-build
make docker-push
make local-deploy-with-watcher IMG=<image-name>:<image-tag>
# build your local image
make docker-build IMG=k3d-registry.localhost:5111/<your-image-name>:<your-image-tag>
# push it to the local registry
make docker-push IMG=k3d-registry.localhost:5111/<your-image-name>:<your-image-tag>
# deploy using the image (note the change to port 5000 which is exposed in the cluster)
make local-deploy-with-watcher IMG=k3d-registry.localhost:5000/<your-image-name>:<your-image-tag>
```

</details>
Expand All @@ -88,8 +91,14 @@ This setup is deployed with the following security features enabled:
Adjust the path to your `template-operator` local directory or any other reference module operator accordingly.

```shell
kyma alpha create module -p ../template-operator --version 1.2.3 \
--registry k3d-registry.localhost:5111 --insecure --module-config-file ../template-operator/module-config.yaml
cd <local path to template operator repository>
# generates the manifests and saves them to a template-operator.yaml file
make build-manifests
# create the a ModuleTemplate CR and saves it to a template-yaml file
kyma alpha create module -p ./ --version 1.2.3 \
--registry k3d-registry.localhost:5111 --insecure --module-config-file ./module-config.yaml
```

6. Verify images pushed to the local registry:
Expand Down Expand Up @@ -125,7 +134,7 @@ This setup is deployed with the following security features enabled:
8. Apply the template:

```shell
kubectl apply -f template.yaml
kubectl apply -f ./template.yaml
```

### SKR cluster setup
Expand Down

0 comments on commit ef34f7a

Please sign in to comment.