Skip to content

Commit

Permalink
Update README with simplified make target ref (operator-framework#178)
Browse files Browse the repository at this point in the history
Signed-off-by: kevinrizza <[email protected]>
  • Loading branch information
kevinrizza authored Sep 21, 2023
1 parent 28737da commit 51e5807
Showing 1 changed file with 4 additions and 37 deletions.
41 changes: 4 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,43 +168,10 @@ If you have any questions, feel free to reach out to us on the Kubernetes Slack
**Prerequisites**
- [Install kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
**Local (not on cluster)**
> **Note**: This will work *only* for the controller
- Create a cluster:
```sh
kind create cluster
```
- Install CRDs and run the controller locally:
```sh
kubectl apply -f config/crd/bases/ && make run
```
**Test it out**
**On Cluster**
- Build the images locally:
```sh
make docker-build-controller && make docker-build-server
```
- Create a cluster:
```sh
kind create cluster
```
- Load the images onto the cluster:
```sh
kind load docker-image quay.io/operator-framework/catalogd-controller:latest && kind load docker-image quay.io/operator-framework/catalogd-server:latest
```
- Install cert-manager:
```sh
make cert-manager
```
- Install the CRDs
```sh
kubectl apply -f config/crd/bases/
```
- Deploy the apiserver, etcd, and controller:
```sh
kubectl apply -f config/
```
- Create the sample Catalog (this will trigger the reconciliation loop):
```sh
kubectl apply -f config/samples/core_v1alpha1_catalog.yaml
make run
```
This will build a local container image for the catalogd controller, create a new KIND cluster and then deploy onto that cluster.

0 comments on commit 51e5807

Please sign in to comment.