LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ytt

YAML templating tool that understands YAML structure

TLDR

Render a template
$ ytt -f [template.yml]
copy
Overlay data values
$ ytt -f [template.yml] --data-value [key=value]
copy
Multiple files / directories
$ ytt -f [config/] -f [values.yml]
copy
Output to a file
$ ytt -f [template.yml] > [out.yml]
copy

SYNOPSIS

ytt [*options*]

DESCRIPTION

ytt (from Carvel) templates YAML by operating on the YAML structure rather than raw text, reducing indentation bugs common with string templates. It supports data values, overlays, functions, and modular libraries—popular for Kubernetes manifests alongside kapp and kbld.Docs: https://carvel.dev/ytt/

PARAMETERS

-f, --file *path*

Template or data file/directory (repeatable).
--data-value *key=value*
Set a data value.
--data-values-file *path*
Load data values from YAML.
--output-files *dir*
Write results as files.
See ytt --help for strict mode, warnings, and library paths.

INSTALL

brew install ytt
copy
nix profile install nixpkgs#ytt
copy

CAVEATS

Learning curve differs from Helm/Go templates. Invalid YAML inputs fail closed. Combine with kapp for deploy workflows.

SEE ALSO

kapp(1), helm(1), gomplate(1), kustomize(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid