sprig
sprig copied to clipboard
Useful template functions for Go templates.
Improve documentation by fix error in the multif function and removing duplicated documentation in Float Math Functions
Implementation for #286.
When using sprig to generate passwords there's no guarantee that the password generated conforms to standards. [randAlphaNumeric()](https://github.com/Masterminds/sprig/blob/1c4ac026244459b0f824a4c669e940325b2dbf20/strings.go#L58) generates strings from the set of alphanumerics, not that at least one lowercase,...
There seems to be an issue with scientific numbers for example {{round -1.71e-13 2}} ----outputs---> -0.01 which should output 0.00 {{round 1.71e-13 2}} ----outputs---> 0 which should output 0.00
getCA, genSignedCert and friends right now support only CN field. For some applications it's necessary to provide other parameters that pkix.Name supports [1]. E.g. I've tried to use Sprig to...
Would like to have ed25519 algorithm support in genPrivateKey along with dsa, rsa and ecdsa.
As ConfigMaps etc doesn't handle bytes well and some software having support for parsing hexadecimal characters into their wanted bytes configuration, it can be useful to have a randHex function...
With Helm 3 we are deploying a mutating webhook service in kubernetes. For that we need to generate a CA and a server certificate. We di this via the template...
### Background and Issue Let's use `abbrev` as example, `abbrev 3 "hello world"` gives us `"hello world"`, because of line https://github.com/Masterminds/sprig/blob/4241ae82dd07e5d3391a83c25b79c04450eb22b0/strings.go#L39-L41 This happens silently, and may be misleading (my intuitive...