<#3270 Fix issue where pod template override pod s...
# flyte-github
c
#3270 Fix issue where pod template override pod spec was missing Pull request opened by Sovietaced ## Tracking issue Fixes flyteorg/flyte#6463 ## Why are the changes needed? The pod_spec was not included in the pod template when not using fast registration. This would lead to bad task specification errors on the backend since there would be no pod spec but a primary container name was configured. Although this comes from our custom Armada plugin, the plugin is just using common pod_helpers code.
RuntimeExecutionError: max number of system retry attempts [31/30] exhausted. Last known status message: failed at Node[n0-n0]. RuntimeExecutionError: failed during plugin execution, caused by: failed to execute handle for plugin [armada]: generating job request: [BadTaskSpecification] invalid TaskSpecification, primary container [primary] not defined
After debugging I found that this was logged from propeller pod_helpers.go code.
Copy code
podTemplate=metadata:{} pod_spec:{} primary_container_name:"primary"
## What changes were proposed in this pull request? Updates the translation code to render the pod template pod spec unconditionally. ## How was this patch tested? Tested in a production environment. ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. https://bito.ai#summarystart| ### Summary by Bito This pull request resolves an issue with the pod template override and the pod specification missing during non-fast registration, ensuring the pod spec is rendered unconditionally and enhancing task execution reliability. The changes were validated in a production environment. flyteorg/flytekit