Skip to content

Add log links to task template#7030

Merged
pingsutw merged 1 commit intov2from
task-template-link
Mar 13, 2026
Merged

Add log links to task template#7030
pingsutw merged 1 commit intov2from
task-template-link

Conversation

@pingsutw
Copy link
Member

@pingsutw pingsutw commented Mar 13, 2026

Tracking issue

NA

Why are the changes needed?

When a task template has log_links in its metadata, those links should be passed through to the log plugin system so they appear in the UI. This enables task authors to attach custom log links (e.g., to external monitoring systems) directly to task templates.

What changes were proposed in this pull request?

  • Add taskTemplate *core.TaskTemplate as a second parameter to InitializeLogPlugins
  • When the task template has log_links in its metadata, prepend them as TemplateLogPlugin entries
  • Add IconUri field to TemplateLogPlugin struct
  • Update all callers of InitializeLogPlugins across dask, kfoperators, pod, ray, spark, and connector plugins to pass the task template (or nil where unavailable)
  • Update tests accordingly

How was this patch tested?

  • All existing tests pass: go test ./flyteplugins/...
  • go vet ./flyteplugins/... passes cleanly
  • go build ./flyteplugins/... compiles successfully

Labels

  • added: New feature for task template log links pass-through

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

🤖 Generated with Claude Code

When a task template has log_links in its metadata, pass them through
to the log plugin system as TemplateLogPlugin entries. Also adds an
IconUri field to TemplateLogPlugin.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Kevin Su <pingsutw@apache.org>
@github-actions github-actions bot mentioned this pull request Mar 13, 2026
3 tasks
@pingsutw pingsutw self-assigned this Mar 13, 2026
@pingsutw pingsutw added this to the V2 GA milestone Mar 13, 2026
@pingsutw pingsutw merged commit 1f91f85 into v2 Mar 13, 2026
14 checks passed
@pingsutw pingsutw deleted the task-template-link branch March 13, 2026 23:02
afbrock pushed a commit that referenced this pull request Mar 18, 2026
Signed-off-by: Kevin Su <pingsutw@apache.org>
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 this pull request may close these issues.

2 participants