-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
There may be underlying reasons why this wasn't included at some point, but seeing as the Sprig library is pretty well maintained, it would make sense to include it with the kube-gen template processor.
https://github.com/Masterminds/sprig
I think it only requires adding the following here
Line 3 in 5534ca5
| import ( |
import (
"github.com/Masterminds/sprig/v3"
"html/template"
)and merging these functions here
Line 17 in 5534ca5
| var Funcs = template.FuncMap{ |
tpl := template.Must(
template.New("base").Funcs(sprig.FuncMap()).ParseGlob("*.html")
)Metadata
Metadata
Assignees
Labels
No labels