3 ms·
Was about to ask if you had k8s api models available internally, and that someone should create some tool to generate that from the spec. But turns out it alrea
by filleokus 3y ago
Was about to ask if you had k8s api models available internally, and that someone should create some tool to generate that from the spec. But turns out it already exists in the open!
https://github.com/apple/pkl-k8s-examples https://github.com/apple/pkl-k8s-examples
- crabique 3y agoWhy yes, I would like to see more of those in my k8s, so glad we finally have the technology https://github.com/apple/pkl-k8s-examples/blob/96ba7d415a85cfbf5b6ef396ca4d1592e8451e02/pkl/advanced/deployments.pkl#L46-L55 https://github.com/apple/pkl-k8s-examples/blob/96ba7d415a85c...
- physicles 3y agoComing from yaml+kustomize, all those curly braces are a tough sell. It looks like they roughly double the number of lines in the file.
- fzeindl 3y agoWhile I learned to accept YAML it messes up editor usage. It is so sensitive that basic text editing like copy and paste, tab, in/decreasing indent never quite do what I expect in IntelliJ. I paste parts of yaml into another yaml and it ends up somewhere unpredictable.
- manmal 3y agoCurly braces are great at ensuring correctness though, as goto fail; has shown.