You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jsonnet programs cannot always be self-contained, consider e.g. when the generated config needs to have secrets in it. In this case, you do not want to commit your secrets alongside code. More generally, you might want to parameterise your program with commit hashes, versions numbers, etc.
Top-level arguments (TLAs) allow you to call Jsonnet programs with parameters, as long as your program evaluates to a function.
Jsonnet programs cannot always be self-contained, consider e.g. when the generated config needs to have secrets in it. In this case, you do not want to commit your secrets alongside code. More generally, you might want to parameterise your program with commit hashes, versions numbers, etc.
Top-level arguments (TLAs) allow you to call Jsonnet programs with parameters, as long as your program evaluates to a function.
If a program does not reduce to a top-level function, then the arguments are ignored.
See here for how it's done in go-jsonnet: https://github.com/google/go-jsonnet/blob/v0.17.0/interpreter.go#L1227
The text was updated successfully, but these errors were encountered: