Documentation
¶
Overview ¶
Command bundle assembles the modular Starlark deploy program into the single self-contained gems/gitlab-deploy-driver-argo-rollouts/scripts/deploy.star that kas runs.
kas receives a deploy program as one blob and resolves load() only for registered runtime modules (e.g. "gitlab-functions"), never local files, so the released program must be a single file. The fragments declare their local dependencies with load("./<path>.star", ...), resolved relative to the importing file; this tool walks that graph from the entrypoint (flows/main.star), inlines each fragment once in dependency order into one flat Starlark namespace, hoists the runtime module loads to the top, and strips the local loads (superfluous once inlined) and every fragment comment.
Regenerate with `make flows-bundle`. Do not edit the generated deploy.star by hand; the CI freshness check re-runs this tool and fails on any diff.