Add KubernetesPodExecOperator for existing Kubernetes Pods - #71244
Open
AlejandroMorgante wants to merge 4 commits into
Open
Add KubernetesPodExecOperator for existing Kubernetes Pods#71244AlejandroMorgante wants to merge 4 commits into
AlejandroMorgante wants to merge 4 commits into
Conversation
AlejandroMorgante
requested review from
hussein-awala,
jedcunningham and
jscheffl
as code owners
August 6, 2026 15:27
AlejandroMorgante
marked this pull request as draft
August 6, 2026 15:40
AlejandroMorgante
marked this pull request as ready for review
August 6, 2026 15:40
AlejandroMorgante
marked this pull request as draft
August 6, 2026 17:41
AlejandroMorgante
marked this pull request as ready for review
August 6, 2026 17:41
Reusing a running Pod avoids the startup latency incurred when each task creates a new Pod.
AlejandroMorgante
force-pushed
the
add-kubernetes-pod-exec-operator
branch
from
August 6, 2026 21:59
031ffbc to
52b1cc6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
KubernetesPodExecOperatorto execute commands in a running container of an existing Kubernetes Pod without creating, restarting, or deleting it. This supports pre-warmed and API-visible static Pods where avoiding startup latency is important.The operator validates the target Pod and container, streams stdout and stderr, supports optional stdout XCom, reports non-zero exit codes, and closes the exec connection when the task is killed. Provider metadata, RBAC guidance, and operator documentation are included.
Tests:
pytest providers/cncf/kubernetes/tests/unit/cncf/kubernetes/operators/test_pod_exec.py -q(32 passed)Was generative AI tooling used to co-author this PR?
Generated-by: Codex (GPT-5) following the guidelines