<#1330 docs: add app substate showcase example> Pu...
# flyte-github
a
#1330 docs: add app substate showcase example Pull request opened by AdilFayyaz Motivation The console's Apps listing renders a status/substate badge for each app, but there was no easy way to verify every badge against a real cluster. This example deploys one deliberately-broken app per failure mode so all substates can be provoked and visually checked. Summary • Adds
xamples/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-sdk