cuddly-jelly-27016
02/12/2025, 11:01 PMmergePodSpecs to merge default podSpec with our driverPod or executorPod.
How was this patch tested?
Unit tests
I extended the existing Spark unit test TestBuildResourceContainer and TestBuildResourcePodTemplate and create a new test named TestBuildResourceCustomK8SPod for testing.
Test with my_spark example
See flyteorg/flytekit#3016
Setup process
Screenshots
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Related PRs
flyteorg/flytekit#3016
Docs link
Summary by Bito
This PR enhances Spark task configuration by introducing separate driver and executor pod specifications through new SparkJob message fields. The implementation adds support for customizing Kubernetes pod configurations independently for Spark driver and executor components, including tolerations, environment variables, and other pod settings. The changes encompass protobuf definitions with generated code for multiple languages and improvements to pod helper functions.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 4
flyteorg/flytecuddly-jelly-27016
02/12/2025, 11:01 PM