From the example provided I can see that the KCL K8s sample had 18 lines whereas the generated YAML file had 21 lines.
I'm sort of missing the point here as to how KCL is helping here.
Kusion Configuration Language (KCL) is an open source constraint-based record and functional language. KCL improves the writing of a large number of complex configurations such as cloud native scenarios through mature programming language technology and practice, and is committed to building better modularity, scalability and stability around configuration, simpler logic writing, fast automation and good ecological extensionality.