Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kind relations/inv/spicedb setup #252

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,22 @@ jobs:

- name: Monitor Pods in Kind
run: |
timeout 90s kubectl get pods -w || exit 0
for i in {1..300}; do
STATUS=$(kubectl get pods --selector=job-name=e2e-inventory-http-tests -o jsonpath='{.items[0].status.phase}')
if [ "$STATUS" = "Succeeded" ]; then
echo "Test pod completed successfully."
exit 0
elif [ "$STATUS" = "Failed" ]; then
echo "Test pod failed."
TEST_POD=$(kubectl get pods --selector=job-name=e2e-inventory-http-tests -o jsonpath='{.items[0].metadata.name}')
kubectl logs $TEST_POD
exit 1
fi
sleep 1
done

echo "Timeout reached while waiting for the test pod to complete."
exit 1

- name: View Test Pod Logs
run: |
Expand Down
12 changes: 10 additions & 2 deletions deploy/kind/inventory/kessel-inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,22 @@ stringData:
grpc:
address: 0.0.0.0:9081
authn:
psk:
pre-shared-key-file: /psks.yaml
allow-unauthenticated: true
#psk:
#pre-shared-key-file: /psks.yaml
authz:
impl: allow-all
#impl: kessel
#kessel:
#insecure-client: true
#url: http://relationships-service.default.svc.cluster.local:8000
#enable-oidc-auth: false
#principal-user-domain: http://relationships-service.default.svc.cluster.local:8000
eventing:
eventer: stdout
kafka:
storage:
disable-persistence: true
database: postgres
sqlite3:
dsn: inventory.db
Expand Down
13 changes: 13 additions & 0 deletions deploy/kind/relations/spicedb-kind-setup/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Setup Spicedb-operator with Postgres in local kind kubernetes with monitoring stack

# 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
Loading
Loading