-
Notifications
You must be signed in to change notification settings - Fork 53
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
Feature Request: File module #109
Comments
Hey @andrewhamon - one option is to define a variable or a function returning a string in a .star file and import it using Starlark's Another option is to implement custom module that reads data from external source (e.g Vault) or a filesystem but that obviously breaks determinism. |
Maybe I'm blind, but I don't see any use of yaml there? That just looks like loading some starlark structures from another file. Anyways, putting my yaml inside a starlark string and then parsing it isn't really an option, the yaml file is also read by other non-skycfg systems.
I don't see how a filesystem read breaks determinism any more than In fact... thats exactly what I did. All in all pretty easy. |
Hey there, I've been experimenting with Skycfg and I really like it!
I was hoping to import some data from a yaml file and use that to generate some config, but it seems that the yaml module can only decode a blob of yaml. This is a bit puzzling to me - where does one get a blob of yaml in a pure starlark program with no ability to read from a file?
Anyway, maybe I'm missing something obvious, but it sure would be handy to have a file module for slurping up the bytes of a file.
The text was updated successfully, but these errors were encountered: