Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien committed Nov 21, 2024
1 parent f8452c9 commit cf536ca
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 131 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Monitor Pods in Kind
run: |
for i in {1..300}; do
for i in {1..200}; do
MIGRATE_STATUS=$(kubectl get pods -l job-name=spicedb-cr-migrate -o jsonpath='{.status.containerStatuses[0].ready}')
if [ "$MIGRATE_STATUS" = "Completed" ]; then
echo "SpiceDB migration completed."
Expand All @@ -27,10 +27,7 @@ jobs:
echo "SpiceDB migration failed."
exit 1
fi
sleep 2
done
for i in {1..300}; do
ZK_STATUS=$(kubectl get pods my-cluster-zookeeper-0 -o jsonpath='{.status.phase}')
ZK_READY=$(kubectl get pods my-cluster-zookeeper-0 -o jsonpath='{.status.containerStatuses[0].ready}')
if [ "$ZK_STATUS" = "Running" ] && [ "$ZK_READY" = "true" ]; then
Expand Down
17 changes: 5 additions & 12 deletions deploy/kind/relations/spicedb-kind-setup/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# Setup Spicedb-operator with Postgres in local kind kubernetes with monitoring stack
## Relations-api and SpiceDB setup

# Run the setup
`./setup.sh`

## Testing grpc end-point
`grpcurl -plaintext spicedb-grpc.127.0.0.1.nip.io:80 list`
```# authzed.api.v1.ExperimentalService
# authzed.api.v1.PermissionsService
# authzed.api.v1.SchemaService
# authzed.api.v1.WatchService
# grpc.health.v1.Health
# grpc.reflection.v1alpha.ServerReflection
Setup for Relations-api and SpiceDB taken from:
```http
https://github.com/project-kessel/relations-api/tree/main/spicedb-kind-setup
```
15 changes: 0 additions & 15 deletions deploy/kind/relations/spicedb-kind-setup/install-operator.md

This file was deleted.

72 changes: 0 additions & 72 deletions deploy/kind/relations/spicedb-kind-setup/setup.sh

This file was deleted.

25 changes: 0 additions & 25 deletions deploy/kind/relations/spicedb-kind-setup/teardown.sh

This file was deleted.

2 changes: 0 additions & 2 deletions deploy/schema.zed
Original file line number Diff line number Diff line change
Expand Up @@ -473,5 +473,3 @@ definition acm/k8s_cluster {
definition acm/k8s_policy {
relation t_workspace: rbac/workspace
}


0 comments on commit cf536ca

Please sign in to comment.