pollypkg / polly

Parameterized Observability Packages
https://pollypkg.github.io/polly/
Apache License 2.0
84 stars 8 forks source link

Jsonnet -> polly converter #38

Open paulfantom opened 2 years ago

paulfantom commented 2 years ago

I believe it would help with adoption in new projects if we could somehow import existing jsonnet mixins as a polly pkg.

I hit this issue when rewriting parts of kube-prometheus into cue as all upstream monitoring mixins are written in jsonnet.

sdboyer commented 2 years ago

Goal is - to increase and simplify adoption, we need something that would convert existing jsonnet mixins into a polly package. For MVP, it's a basic conversion without any parameterization.

So, render jsonnet->JSON and then suck it into a polly package.

Essential pieces for this workflow:

This potentially paves the way for working in polly directly in a mixin-oriented operator.