Hacker Newsnew | past | comments | ask | show | jobs | submit | Duologic's commentslogin

Any particular libraries you use to generate TF-JSON from jsonnet?

I wrote a generator a little while ago that can create jsonnet libraries from the TF schemas: https://github.com/Duologic/soysonnet

Example lib here: https://github.com/Duologic/soysonnet-aws

I only needed it for AWS so I didn't spend more time on it.


By hand :( But I like your project. Do you use Tanka?

I work at Grafana and did quite a bit of work on Tanka in the past, so yes.

I noticed phillebaba using it during his Spegel talk at FOSDEM.


This reminds me of the Danish Navy oak: https://en.m.wikipedia.org/wiki/Visings%C3%B6#History


I'm interested in the code that processes the swagger/openapi into jsonnet, can you link to that?


It’s customized to our policy spec. But you can learn from this and adapt it to your spec.

https://github.com/fluxninja/aperture/blob/main/scripts/json...


At Grafana Labs we're using jsonnet at scale, while being a powerful functional language it is also excellent for rendering JSON/YAML config. We have developed Tanka[0] to work with Kubernetes, for other purposes I can recommend this course[1] (authored by me).

[0] https://tanka.dev/

[1] https://jsonnet-libs.github.io/jsonnet-training-course/


Wow I love it here. Where else can you post something and get a project leader chiming in within hours?

We are at a crossroads in moving towards GitOps and a CD vendor change, and are forced into some manifest conversion. From where we are coming from Helm is the obvious choice, but I do think we can do better, especially for debugging, readability, and inheritance.

ArgoCD’s support for jsonnet turned me onto it and Tanka, and now I’m going to take it for a more serious spin. I’m early days with it but I’m curious about how life is with having a compiled language for an infra development. I had the same reluctance when thinking about making the Typescript leap, but that turned out just fine. I kinda want to jsonnet all the things if it works out well, but I worry the compilation steps would make it cumbersome for some use cases.


Hit me up on the #jsonnet channel on Kubernetes Slack or the #tanka channel on Grafana Slack if you want to go a bit more in depth.


I can really recommend cable sleeves/tubes, I use these on my desk: https://www.amazon.com/Alex-Tech-10ft-Protector-Sleeving/dp/...


Great suggestion. Q: Do these vacuum well? Or should I just replace them every couple of years?


I've bought them 2 years ago including a few spares, haven't replaced them since (not sure what 'vacuum' means in this context).


Last year I wrote a blog post about this exact question: Who watches the watchers?

The general takeaway is that you run a minimal prometheus/alertmanager setup that only scrapes the agents, then use a dead man switch-like system to ensure this pipeline keeps working.

Link: https://grafana.com/blog/2021/04/08/how-we-use-metamonitorin...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: