YAML is the best part about deploying stuff to K8s, hardly a problem waiting to be solved IMO.
I feel like projects like helm are in the templating html with php days. But instead of html+php you get yaml+go. Something better must be right around the corner because people have been solving similar problems for years.
There is also https://dhall-lang.org of similar philosophy and more mature