acoustic-carpenter-78188
04/03/2023, 5:02 AMtaskCtx.TaskExecutionMetadata().GetTaskExecutionID().GetGeneratedName() to get the primary container name. However, in the case of pod template, the primary container name can vary.
The solution is to expose primaryContainerName from ToK8sPodSpec and pass to OverridePrimaryContainerName (which was named OverrideDefaultContainerName).
Tracking Issue
flyteorg/flyte#3567
flyteorg/flyteplugins
✅ All checks have passed
6/6 successful checksacoustic-carpenter-78188
04/17/2023, 3:36 PM