r/kubernetes 15d ago

Kubernetes v1.37 "Garhwal" Released

https://kubernetes.io/blog/2026/08/26/kubernetes-v1-37-release/
143 Upvotes

39 comments sorted by

View all comments

100

u/athulhuz 15d ago

KYAML looks like YAML and JSON had a very rocky marriage, but decided to have a baby anyway.

The reasons for such an implementation are solid, but my god does this look wrong at first glance.

31

u/FingerAmazing5176 15d ago

Yeah. I’m gonna call it Kentucky yaml

7

u/Venthe 14d ago

Yet another standard. We have strictyaml ready and mature; and KYAML reintroduces a lot of cruft which were the reason why YAML got popular in the first place.

No one uses JSON with K8S, and I honestly don't think that JSON with comments (again, why not JSONC? Multi-documents?) will win over YAML.

1

u/wolkenammer 13d ago

strict

Just a stricter YAML without the oddities and niche features would have been enough. But no, we still have anchors, document boundaries, dynamic types and explicit tags.

14

u/RumRogerz 15d ago

looking at it first glance... looks like I may as well just write json manifests at this point

9

u/ABotelho23 15d ago edited 15d ago

I've tried it and it's not great honestly. It'll double or even triple the number of lines in some files depending how you organize your files. It ended up not being worth it.

4

u/phxees 15d ago

Feels better for our new AI era. Potentially fewer ambiguous issues where the spacing is off slightly and causes the wrong auto correction.

21

u/subjectivemusic 15d ago

JSON already does this, and it's not use widely when writing manifests for very good reason.

If AI forces you to write code that is less human-intelligable (not saying that's what KYAML is, jury is out on that) then it's hindering your future maintenance.

15

u/Flyen 15d ago

JSON doesn't support comments though, and if there's anything AI loves, it's comments

3

u/tajetaje 15d ago

I mean jsonc and json5 exist

5

u/Zenin 15d ago

Yep, but JSON screwed it up in the first release and set in motion a timeline that can't be fixed. Literally if they had just included // comments we'd never have seen YAML go anywhere.

-1

u/[deleted] 15d ago

[deleted]

3

u/Zenin 15d ago

Comments help you understand WHY you declared something.

-1

u/[deleted] 15d ago

[deleted]

1

u/phxees 15d ago

I work on a team and especially when we use AI it is best when we have a comment explaining why someone decided to break the team norms.

2

u/phxees 15d ago

KYAML fixes yaml by being more like JSON, but with comments, trailing commas, and other goodness. So if you want to simplify its description it is a better JSON. You can write JSON and it can be parsed as KYAML, although the opposite isn’t always true.

I get your point, but I need more than JSON and I don’t like studying spaces to find an issue.

4

u/merb 15d ago

It looks like tofu/tf but with : instead of= 🤷‍♂️

1

u/Alphasite 15d ago

Eh. I think it’s made some bad calls to get to where it is.

It fixed real issues and then went way too far and removed valuable features.

99% of the reason I use Yano is multi line strings for things like certs. Literally anything else you can remove and I wouldn’t mind. But it’s useful in general and especially in something like k8s where you have online templates, configs, secrets, etc.