Skip to content

[spire-server] go template functions (sprig) #5575

@kfox1111

Description

@kfox1111

The embeded go template engine does not have many useful functions built in.

Other tools such as helm and step-ca embed a library named sprig (https://masterminds.github.io/sprig/)

In particular, some of the string functions are extremely useful. (contains, hasPrefix, trimPrefix, cat, replace, ...)

It would be very easy to embed the library and make it available for use in templates.

Alternately, it would be possible to embed the library and cherry pick only the functions we want to make available to our templates if there is concern there is too many functions there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/backlogIssue is approved and in the backlogunscopedThe issue needs more design or understanding in order for the work to progress

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions