4 ms·
Would you like to count the number of spaces that various items in your manifests are indented and then pass that as an argument to a structure-unaware text fil
by letmeinhere 1y ago
Would you like to count the number of spaces that various items in your manifests are indented and then pass that as an argument to a structure-unaware text file templating engine? Would you like to discover your inevitable yaml file templating errors after submitting those manifests to the cluster? Then yes, you are really missing out!
- thayne 1y agoI really, really, wish we could move away from yaml for tools like this.
- IshKebab 1y agoIf YAML is a foot-gun, templated YAML is a face-cannon.
- 9dev 1y agoI never understood why people didn’t serialize from JSON if they run a transformation step on the YAML anyway. Read JSON, alter in your favorite language, dump YAML as the last step, deploy. Instant prevention of a lot of sadness. Yet somehow, all we have is YAML templating?
- stackskipton 1y agoKubectl will handle JSON without converting it to YAML. So if you are doing this, then just do kubectl apply -f deployment.json
- shepherdjerred 1y agoCDK8s works really well. I'm sad it hasn't really taken off. https://cdk8s.io/ https://cdk8s.io/
- raphinou 1y agoA couple of years ago I was using https://kapitan.dev/ https://kapitan.dev/ which I found really good at the time when using jsonnet files to generate the configs. I haven't used it for some time though.