Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[SPARK-59479][K8S] Remove SecurityManager dependency from KubernetesExecutorBuilder and BasicExecutorFeatureStep - #58768

Closed
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-59479
Closed

[SPARK-59479][K8S] Remove SecurityManager dependency from KubernetesExecutorBuilder and BasicExecutorFeatureStep#58768
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-59479

Conversation

@dongjoon-hyun

@dongjoon-hyun dongjoon-hyun commented Sep 13, 2026

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR removes the SecurityManager dependency from KubernetesExecutorBuilder and BasicExecutorFeatureStep:

  • Add authSecret to KubernetesExecutorConf.
  • Resolve auth secret in BasicExecutorFeatureStep via KubernetesExecutorConf.authSecret instead of SecurityManager.
  • Remove SecurityManager parameter from KubernetesExecutorBuilder.buildFromFeatures and BasicExecutorFeatureStep.
  • Pass auth secret to KubernetesConf.createExecutorConf from pod allocators.

Why are the changes needed?

KubernetesExecutorBuilder and BasicExecutorFeatureStep only require SecurityManager to read secMgr.getSecretKey(). Passing the whole SecurityManager introduces unnecessary coupling and complicates unit testing.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass the CIs with the newly added test cases.

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

Generated-by: Gemini 3.8 Flash

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-59479][K8S] Remove SecurityManager dependency from KubernetesExecutorBuilder and BasicExecutorFeatureStep [SPARK-59479][K8S] Remove SecurityManager dependency from KubernetesExecutorBuilder and BasicExecutorFeatureStep Sep 13, 2026
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Thank you always, @HyukjinKwon !

dongjoon-hyun added a commit that referenced this pull request Sep 13, 2026
…esExecutorBuilder` and `BasicExecutorFeatureStep`

### What changes were proposed in this pull request?

This PR removes the `SecurityManager` dependency from `KubernetesExecutorBuilder` and `BasicExecutorFeatureStep`:

- Add `authSecret` to `KubernetesExecutorConf`.
- Resolve auth secret in `BasicExecutorFeatureStep` via `KubernetesExecutorConf.authSecret` instead of `SecurityManager`.
- Remove `SecurityManager` parameter from `KubernetesExecutorBuilder.buildFromFeatures` and `BasicExecutorFeatureStep`.
- Pass auth secret to `KubernetesConf.createExecutorConf` from pod allocators.

### Why are the changes needed?

`KubernetesExecutorBuilder` and `BasicExecutorFeatureStep` only require `SecurityManager` to read `secMgr.getSecretKey()`. Passing the whole `SecurityManager` introduces unnecessary coupling and complicates unit testing.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs with the newly added test cases.

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

Generated-by: Gemini 3.8 Flash

Closes #58768 from dongjoon-hyun/SPARK-59479.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 39e6e82)
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Merge Summary:

Posted by merge_spark_pr.py

@dongjoon-hyun
dongjoon-hyun deleted the SPARK-59479 branch September 13, 2026 23:22
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.

2 participants