-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: incorporate sprig template funcs, under the
sprig_
namespace
Sprig is the underlying template library used by helm (and lots of others), so even though the project isn't actively developed anymore, it still seems like a useful addition. Functions are exposed under the `sprig_` namespace. For instance, the `max` function in sprig is exposed as `sprig_max`. NOTE: importantly, similar to helm, we are disabling the `env` and `expandenv` template functions -- both for safety reasons as helm has described, as well as the simple fact that mango sets/manages the environment variables that are present for both the templating and execution stages for a given script, which could yeild weird results.
- Loading branch information
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters