#6284 Fix: Enable kubeflow plugins to use dynamic log links
Pull request opened by
fg91
Why are the changes needed?
So-called dynamic log links are log links which are not activated by default for all tasks but need to be activated for specific tasks. This is done setting a respective "log link type" in the so-called task config, see e.g.
here in the wandb plugin.
These dynamic log links currently don't work for the kubeflow plugins (pytorch, tensorflow, mpi tasks). The reason is that the so-called "task template" in flytepropeller - which contains the task-specific log link config - is not made available to the log link templating engine. This PR fixes this.
How was this patch tested?
Added unit test.
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Summary by Bito
This PR addresses a bug in Kubeflow plugins by enabling dynamic log links through task template integration. The changes modify the GetLogs function signature to include taskTemplate parameter and update PyTorch, TensorFlow, and MPI plugins accordingly. The implementation ensures proper template availability for log link generation with comprehensive test coverage.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 3
flyteorg/flyte