examples/demo: add run-demo.sh, an automated kind-cluster demo #4
Reference in New Issue
Block a user
Delete Branch "examples-demo/run-demo-script"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
One script, two modes (
run-demo.sh/run-demo.sh --teardown), that takes a fresh empty kind cluster all the way to a working demo:helm upgrade --installs this chart, applies every CRD kind inexamples/demo, andkubectl waits all nine objects toReady./api/admin/settingsorPOST /api/users(#3, and the sibling gap onterdut-serverniklas/terdut-server#23), so it reaches into the demo's own throwaway Postgres directly — flipssignup_modetoopen, signsaliceup for real over the ordinary signup endpoint, and joins her to both Platform and Payments (open signup always creates its own new team rather than joining an existing one by name, so without this she'd have a working login that can't see a single incident this demo fires —/api/incidents//api/alertsare both scoped to the caller's own team memberships).fire-alerts.shat both teams, so a fresh run already has visible incidents waiting in the web UI.Verification
Run end to end against a real kind cluster, including a second, genuinely-fresh run that hit #3 live (
terdutteam-platformwedged in the exact 403 retry loop that issue describes). Confirmed the script itself fails cleanly on that — clearFAILEDmessage, correct exit code, no orphaned port-forward — rather than hanging or leaving a mess, which is the most this script can reasonably do about a bug in the operator it's driving. Once that CR was manually cleared, the rest of the demo (all 9 CRs, alice's login, all 3 fired incidents visible to her) was confirmed working.Related: #3, niklas/terdut-server#23