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

different from jsonnet? #5

Open
ghostsquad opened this issue Sep 13, 2019 · 7 comments
Open

different from jsonnet? #5

ghostsquad opened this issue Sep 13, 2019 · 7 comments

Comments

@ghostsquad
Copy link

Honest question: how is this different from jsonnet?

@DavidWells
Copy link
Owner

Looking at https://jsonnet.org/ a lot of things are different 😄

For starters this adds variable support to existing config formats (yml, json, toml etc). Anything you can parse into a object (in node) can be used. So it’s a variable system for whatever format you’d want.

Also asynchronous values are allowed. Idk if jsonnet does that or not

@ghostsquad
Copy link
Author

How does async work? What's the value add there?

@DavidWells
Copy link
Owner

Async values are quite useful for secrets & remote values that may have changed (service discovery)

https://github.com/DavidWells/configorama/tree/master/tests/asyncValues

You can define your own async variable like ${ourSecrets:key} and have that fetch from your remote secret store during configuration resolution

@ghostsquad
Copy link
Author

cool. Thanks for the explanations!

@DavidWells
Copy link
Owner

Thanks for the questions 😃

Out of curiosity, How’d you find the repo?

@ghostsquad
Copy link
Author

From twitter actually! Specifically this thread:

https://twitter.com/DavidWells/status/1172177440703037440

@ghostsquad
Copy link
Author

ghostsquad commented Sep 14, 2019

I'm a Kubernetes guy, and I like that K8s uses YAML for it's manifests. YAML is pretty easy to read, easy to write, and there's a lot of tools out there that will output JSON or YAML, so you really can choose whatever language/templating you want while working with Kubernetes manifests.

I somewhat understand that people want something better than YAML/JSON, but I think they missed the point of why Kubernetes team chose it. They chose it because it's the common denominator. Anyways, I'm a big fan of Jsonnet for this exact reason. I'm still pretty curious though about other tools that are coming out, such as this one!

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