Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Fix tenant output
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentluce committed Aug 27, 2024
1 parent ff398cf commit a39970a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci_wip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,28 @@ jobs:
run: bash -c 'source ~/.bashrc; if kardinal | grep -q "Kardinal CLI"; then exit 0; else exit 1; fi'

- name: Retrieve the tenant UUID
id: tenant
run: |
tenant_id=$(kardinal tenant show)
echo ${tenant_id}
echo "tenant_id=${tenant_id}" >> "$GITHUB_OUTPUT"
echo "id=${tenant_id}" >> "$GITHUB_OUTPUT"
- name: Deploy boutique demo manifest
run: |
KARDINAL_CLI_DEV_MODE=TRUE kardinal deploy -k obd-demo.yaml
- name: Test cluster resources endpoint
run: |
tenant_id=${{ steps.vars.outputs.tenant_id }}
deployments=$(curl http://127.0.0.1:8080/tenant/${tenant_id}/cluster-resources | jq -r '.deployments[].metadata.name')
tenant_id=${{ steps.tenant.outputs.id }}
deployments=$(curl http://localhost:8080/tenant/${tenant_id}/cluster-resources | jq -r '.deployments[].metadata.name')
if [ "${deployments}" != "postgres-prod\nproductcatalogservice-prod\ncartservice-prod\nfrontend-prod" ]; then exit 1; fi
- name: Create, validate and delete flow
run: |
KARDINAL_CLI_DEV_MODE=TRUE kardinal flow create frontend kurtosistech/frontend:demo-frontend > kardinal.out
flow_id=$(grep "Flow.*created" kardinal.out | cut -d ' ' -f2 | tr -d "\"")
tenant_id=${{ steps.vars.outputs.tenant_id }}
deployments=$(curl http://127.0.0.1:8080/tenant/${tenant_id}/cluster-resources | jq -r '.deployments[].metadata.name')
tenant_id=${{ steps.tenant.outputs.id }}
deployments=$(curl http://localhost:8080/tenant/${tenant_id}/cluster-resources | jq -r '.deployments[].metadata.name')
if [ "${deployments}" != "postgres-prod\nproductcatalogservice-prod\ncartservice-prod\nfrontend-prod" ]; then exit 1; fi
kardinal flow delete ${flow_id}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
networks:
cont:
kardinal:
driver: bridge
enable_ipv6: false

Expand Down

0 comments on commit a39970a

Please sign in to comment.