-
Notifications
You must be signed in to change notification settings - Fork 167
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
request: support more of the normal jsonnet input flags #353
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
--tla-code
and --tla-str
TLAs have been added by #340. This also changed the flags to match those of jsonnet. Current flags:
Because Tanka has the model of ranked import paths (https://tanka.dev/libraries/import-paths), I'm not sure if allowing arbitrary jpaths is a good thing here. Generally WDYT? |
although I would normally agree. If I'm working only on kubernetes, this directory structure makes sense. But I'm using jsonnet for a lot more than that, and as such, I'm actually importing files outside of my I have a global "config", that's used to hold values that are common among a variety of generated configuration files. For now, I'm simply forced to do ugly relative imports, of which, some start with |
I think this is a valid ask, and Tanka could enforce its preferred order, and append the user defined -J paths. I have a shared base config for CI-CD, and this would allow inclusion even if not in the intended Tanka import order. |
TLAs and extVars are implemented, using the same flags as Jsonnet does. JPATH has its own tracking issue: #365 Closing as there is nothing to do here anymore :) |
@sh0rez but
nor
can not work.. any workaround?
thanks |
@lukasmrtvy Assuming you have a tanka top level function that takes a
Hope that helps. |
--ext-code-file would be useful for injecting secrets from temporary files. The following works for top level variables
|
This is a request to have Tanka support some of the other standard flags for use with jsonnet:
Also, the naming of these should likely be standard between TK and Jsonnet for ease of discovery. I filed a separate issue for that here: #354
The text was updated successfully, but these errors were encountered: