sprig icon indicating copy to clipboard operation
sprig copied to clipboard

Useful template functions for Go templates.

Results 179 sprig issues
Sort by recently updated
recently updated
newest added

Currently, the `genPrivateKey` function supports nistp256 ECDSA, DSA, and 4096-bit RSA keys. Adding [nistp521](https://godoc.org/crypto/elliptic#P521) (under the name 'p521' or similar) seems as if it would be simple to do without...

generateCertificateAuthority generates a 2048 bit key. It is not possible to change this value. Maybe you could add a parameter to set key length.

Using sprig 2.22.0 `deepCopy` and `mergeOverwrite` are there but not the `must*` variants despite what docs say

question

Spring v3 functions look great! However it looks like current (non v3) versions of Helm are pinned to Sprig v2. Some kind of note that the documentation is for v3...

enhancement

Issue-fied version of https://github.com/Masterminds/sprig/issues/3#issuecomment-349094450: > Since append is not variadic, is there a method to concatenate two arrays/slices? > This would be nice: `{{ range (append .arrayA .arrayB) }}` Specifically,...

enhancement

I'd like to have requiredEnv which would work similar to this https://github.com/roboll/helmfile > The required_env function allows you to declare a particular environment variable as required for template rendering. If...

enhancement

Recently I needed to work with string slices in templates and apply various functions to each element (title, lower, trim, etc). I wanted to avoid using loops and assignments, so...

enhancement

It would be nice to add localization functions. Not sure how it would all be composed, but something like: `t "FR" "cheese"` -> `"fromage"` would be nice. It would be...

enhancement

I have a use for needing to easily serialize a `map[string]string` given a `sep` and `assign`. I need it for a helm chart where I want to serialize a yaml...

enhancement

Given the following string, how to change value of password using sprig `regexReplaceAllLiteral` when input and output contain `"` character? ``` {"name": "harry", "password": "foo"} ``` expected output: ``` {"name":...

question