-
Notifications
You must be signed in to change notification settings - Fork 3
Support configurable jsonnet interpreter #23
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
Comments
I guess my first question is do both those functions rely on any external CLI utilities. If they don't then I absolutely will include them, or something similar. To your first question, I was trying to think of interesting ways a user could define additional functions at runtime. In my head at the time it didn't seem like it'd be worth the effort since the writer of the jsonnet can easily define the functions they need. That being said, having the ability to declare functions globally via another CRD or something could be interesting. |
I looked at the code. The helm native func does make CLI calls. |
And so does the kustomize native func. :( |
However, I wonder if those are necessary. I believe that there is a Helm Go API. |
Yea I have other projects where I've (at least with helm) invoked the needfuls via the Go API. But ya, we'd have to implement them into the controller. I'm trying to avoid embedding binaries - currently leaning on controller-runtime server-side apply for syncing state instead of using |
I may take a stab at, at least, helm functionality later today or tomorrow |
Awesome!
…Sent from my iPhone
On Aug 8, 2021, at 6:55 AM, Avi Zimmerman ***@***.***> wrote:
I may take a stab at, at least, helm functionality later today or tomorrow
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
I have a new feature on the Simplest example is here: local utils = import 'internal://utils.libsonnet';
{
chart: utils.helmTemplate('example', './chart', {
values: { replicaCount: 2 },
})
} You can see the schema for the final To make testing a little easier I added to the It doesn't get released without a tag, so you'd have to build manually for now to get that command. If you have go installed you can run Any feedback is appreciated if you are able to give it a try 😄 |
Very nice! |
Tanka now has support for helm templating and kustomize templating by way of new native functions. While helm and kustomize are supported by fluxcd, the inclusion of these in tanka means that transformations using jsonnet can be applied to the output of helm and/or kustomize. This is a win, particularly for helm, since helm is not composable.
Is there a way to configure the native functions at run time? If so, then one could leverage these.
Alternatively, could you add these particular native functions to your jsonnet interpreter?
The text was updated successfully, but these errors were encountered: