Skip to content

Comments

[SPARK-55585][K8S]: Allow executor feature steps to create resources#54365

Open
EnricoMi wants to merge 1 commit intoapache:masterfrom
G-Research:k8s-executor-resources
Open

[SPARK-55585][K8S]: Allow executor feature steps to create resources#54365
EnricoMi wants to merge 1 commit intoapache:masterfrom
G-Research:k8s-executor-resources

Conversation

@EnricoMi
Copy link
Contributor

What changes were proposed in this pull request?

Applies resources provided by the executor feature step.

Why are the changes needed?

Spark provides feature steps that allow for custom configuration of Kubernetes driver and executor pods. While driver feature steps can create resources, executor feature steps cannot.

The KubernetesExecutorSpec allows for defining executorKubernetesResources, but they are not created (applied) by the ExecutorPodsAllocator. Only PVCs are specifically created right now.

Does this PR introduce any user-facing change?

Kubernetes resources defined by an executor feature step are actually created.

How was this patch tested?

Unit test.

Was this patch authored or co-authored using generative AI tooling?

No

@EnricoMi
Copy link
Contributor Author

This is how the driver is doing the same thing:

kubernetesClient.resourceList(otherKubernetesResources: _*).forceConflicts().serverSideApply()

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.

1 participant