Which Sprig string functions do you use most in charts?
BeginnerConceptTemplating: Go Templates & Sprig
Answer
trunc, trimSuffix, trimPrefix, trim, lower, upper, replace, contains, hasPrefix, hasSuffix, printf, quote, nospace, regexReplaceAll, splitList, join, b64enc, b64dec, sha256sum, randAlphaNum.
name: {{ printf "%s-%s" (include "shop.fullname" .) "api" | trunc 63 | trimSuffix "-" }}
host: {{ .Values.ingress.host | lower | quote }}
More on Templating: Go Templates & Sprig
What template language does Helm use?BeginnerWhat does the dot (`.`) mean in a Helm template?BeginnerWhat is `$` and when do you need it?IntermediateHow does whitespace control (`{{-` and `-}}`) work?BeginnerHow do `if`, `else if` and `else` evaluate truthiness?BeginnerWhat do `and`, `or`, `not`, `eq`, `ne`, `lt`, `gt` look like in Helm?Beginner