argoproj / argoproj/argo-workflows

Support Expression templating for custom Links

Open
#8,626 1 comment 6 reactions 0 assignees View on GitHub
area/api area/templating area/ui
Dominant language
Go
Stars
17k
Forks
3.7k
Avg merge
1d 20h
Merged PRs (30d)
138

Description

# Summary

The templating system for the Links could be improved to support:
- keys containing special characters
- usage of functions

The templating system for the links would work the same way as the Expression templating system for the Workflows (https://argoproj.github.io/argo-workflows/variables/#expression).

# Use Cases

Usage of keys containing special characters would be useful if I want to use a workflow metadata like `workflows.argoproj.io/workflow-template` in a Link.

The usage of functions would allow the modification of the fields. For example, I would like to add a few seconds to `status.finishedAtEpoch` to take into account the Promtail scrap delay. This could also be useful for formatting, trimming, etc.

---

**Message from the maintainers**:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by comparing custom Links templating with the Expression templating system for Workflows described in the linked documentation; done means Links support keys containing special characters and function-based modifications such as adding time or formatting values.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.