TDK's Topologies and Generators Explained: From Service Definition to Running Stack
A TDK project produces two kinds of generated output: starter code written by the CLI and runtime configuration written by Tilt when it loads the project. The CLI handles project setup in TypeScript using Handlebars templates, while Tilt's engine derives the runtime in Starlark, reading service definitions and writing per-service configuration. Notably, generators are Starlark modules that build outputs such as Dockerfiles as strings rather than using template files, so bugs in generated files usually originate in the engine. The maintainer guide maps responsibilities to folders covering commands, templates, discovery, and topology generators. Topologies describe the stack's shape, separating shared platform infrastructure from per-service Tilt resource generation.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in