acoustic-carpenter-78188
07/27/2026, 8:07 PMxamples/apps/substate_showcase.py, which deploys seven apps covering the substate matrix:
Active (healthy control), CrashLoopBackOff, ImagePullError, OOM Killed, Secret mount error, Initializing, and Pulling Image.
• Image-pull cases use raw string image URIs instead of flyte.Image so the failure happens on the cluster rather than in the local image builder.
• All apps pin replicas=(1, 1) so broken pods keep retrying and their badges stay visible; each flyte.serve() is wrapped in a timeout since broken apps never activate.
• Includes a --cleanup flag that deactivates and deletes all showcase apps.
Test Plan
• Run python examples/apps/substate_showcase.py against a live cluster and confirm each app appears in the console Apps page with its expected badge (listed in the module docstring).
• Confirm substate-ok reaches Active and substate-bigimage transitions Pulling Image → Active.
• Run python examples/apps/substate_showcase.py --cleanup and confirm all seven apps are deleted.
flyteorg/flyte-sdkacoustic-carpenter-78188
07/27/2026, 8:27 PM