Skip to content

Commit

Permalink
Update make targets and README to replace references of rebac.
Browse files Browse the repository at this point in the history
  • Loading branch information
merlante committed Jun 18, 2024
1 parent 0d608c3 commit 3ba1a6a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,25 @@ pr-check:
make lint;
make build;

spicedb:
spicedb-up:
./spicedb/start-spicedb.sh
.PHONY: spicedb
.PHONY: spicedb-up

rebac:
relations-api-up:
./spicedb/start-relations-api.sh
.PHONY: rebac
.PHONY: relations-api-up

rebac/teardown:
./spicedb/teardownrebac.sh
.PHONY: rebac/teardown
relations-api-down:
./spicedb/stop-relations-api.sh
.PHONY: relations-api-down

spicedb/teardown:
spicedb-down:
./spicedb/teardown.sh
.PHONY: spicedb/teardown
.PHONY: spicedb-down

kind/rebac:
kind/relations-api:
./spicedb-kind-setup/setup.sh
.PHONY: kind/spicedb
.PHONY: kind/relations-api

.PHONY: run
# run api locally
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,28 +74,28 @@ wire

### Run spicedb and postgresql db with docker/podman compose

`make spicedb`
`make spicedb-up`

This is a good option for keeping spicedb running in the background while the rebac service is run via
This is a good option for keeping spicedb running in the background while the relations-api service is run via
`make run`, the binary or via the IDE (run/debug) during local development.

### Run the relations-api and spicedb with docker/podman compose

`make rebac`
`make relations-api-up`

This runs everything and is a good option for testing a built rebac container image with the running binary.
This runs everything and is a good option for testing a built relations-api container image with the running binary.

### Teardown spicedb and postgresql db (brought up with docker/podman compose, as above)

`make spicedb/teardown`
`make spicedb-down`

### Teardown rebac and dependencies (brought up with docker/podman compose, as above)
### Teardown relations-api and dependencies (brought up with docker/podman compose, as above)

`make rebac/teardown`
`make relations-api-down`

### Deploy Rebac and Spicedb using kind/kubernetes
### Deploy relations-api and spicedb using kind/kubernetes

`make kind/rebac`
`make kind/relations-api`

### Docker

Expand Down Expand Up @@ -159,7 +159,7 @@ You should be able to use the public route (relations-\*) created by the clowder
This is demonstrating calling relationship api from rbac service in ephemeral environment.

```
./deploy.sh rbac <path_to_local_copy_of_insights_rbac>
./deploy.sh rbac <path_to_local_copy_of_relations-api>
```
`path_to_local_copy_of_insights_rbac` is this [repository](https://github.com/RedHatInsights/insights-rbac)
Expand Down
File renamed without changes.

0 comments on commit 3ba1a6a

Please sign in to comment.