Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extensive templating helpers based on Masterminds/sprig #3726

Open
oncilla opened this issue Feb 16, 2024 · 1 comment · May be fixed by #3770
Open

Add extensive templating helpers based on Masterminds/sprig #3726

oncilla opened this issue Feb 16, 2024 · 1 comment · May be fixed by #3770

Comments

@oncilla
Copy link

oncilla commented Feb 16, 2024

When writing custom templates, the current set of functions is fairly limited.

We could register the functions from https://github.com/Masterminds/sprig to offer the template authors an extensive set of helper functions. Docs of the functions is available here: https://masterminds.github.io/sprig/

If you are interested, I would be happy to send a patch.

TheMeier added a commit to TheMeier/alertmanager that referenced this issue Mar 20, 2024
@TheMeier TheMeier linked a pull request Mar 20, 2024 that will close this issue
TheMeier added a commit to TheMeier/alertmanager that referenced this issue Mar 20, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier added a commit to TheMeier/alertmanager that referenced this issue Mar 20, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier added a commit to TheMeier/alertmanager that referenced this issue Mar 20, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier added a commit to TheMeier/alertmanager that referenced this issue Mar 22, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier added a commit to TheMeier/alertmanager that referenced this issue Mar 22, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier added a commit to TheMeier/alertmanager that referenced this issue Mar 24, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier added a commit to TheMeier/alertmanager that referenced this issue Mar 24, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier added a commit to TheMeier/alertmanager that referenced this issue Mar 24, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier added a commit to TheMeier/alertmanager that referenced this issue Mar 24, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier added a commit to TheMeier/alertmanager that referenced this issue Apr 27, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
@mhulscher
Copy link

A thumbsup does to not do justice to how badly I want this to be added.

TheMeier added a commit to TheMeier/alertmanager that referenced this issue May 3, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier added a commit to TheMeier/alertmanager that referenced this issue May 8, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
TheMeier added a commit to TheMeier/alertmanager that referenced this issue May 8, 2024
fixes prometheus#3726
fixes prometheus#3762
fixes prometheus#603

Signed-off-by: Christoph Maser <christoph.maser+github@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants