Template and patch as needed to easily make your configuration reusable and extensible. Works with your own and third-party YAML configuration. ytt templates are plain YAML documents made from nodes such as maps and arrays. ytt allows you to set values and attach statements (such as if and for loops) on those nodes. This eliminates text insertion concerns like manual escaping and allows for easy structure reuse, thus, increasing readability. Weave ytt templating into your own configuration, externalize values to variables, extract repeated snippets to functions, and make whole sections conditional. Patch on top of any configuration using ytt overlays. Express precise structural edits and invariant declaratively. ytt execution environment is hermetic and side-effect free, with no access to the filesystem, network, time, randomness, or the operating system interfaces. This guarantees that templates produce identical output with the same inputs.

Features

  • Intuitive templating
  • Makes template code look familiar by including a sandboxed Pythonic language
  • Overlays
  • Patch YAML structures via the builtin overlay package
  • Template any YAML content, including, Kubernetes configuration, Concourse pipelines, Docker Compose files, etc.
  • See ytt in action using the interactive playground

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow ytt

ytt Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ytt!

Additional Project Details

Programming Language

Go

Related Categories

Go Software Development Software, Go Admin Templates

Registered

2022-06-23