Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jsonnet -> polly converter #38

Open
paulfantom opened this issue Oct 13, 2021 · 1 comment
Open

Jsonnet -> polly converter #38

paulfantom opened this issue Oct 13, 2021 · 1 comment

Comments

@paulfantom
Copy link
Contributor

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
Copy link
Member

sdboyer commented Nov 17, 2021

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:

  • Don't need to actually invoke jsonnet from the binary, it's enough to accept on stdin
  • Only assumption to make is that we get a stream of JSON which will follow the naming conventions established within mixins for where different object types live
  • Given these inputs, convert them over and write out a polly package structure

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants