Skip to content

2026🔗

YS DRY

My friend Vadim Bauer filed this GitHub issue for the helm-unittest project, to DRY (don't repeat yourself) out some of the repetitive test data.

He also pinged me to weigh in, so I decided to do that in this post!

Simplifying repetitive YAML is what YS was made for. Well, one of many things; but let's focus on that today.

Vadim proposed taking existing YAML data files and using YS variables to define repeated data once, then referring to it in the places it is needed. Solid idea.

Let's use a very simple example here for brevity sake. I'll leave it to you to expand the concepts to your soaking wet YAML files.