Repository navigation
Add GKEPodExecOperator for existing Pods - #72577
Merged
Merged
Conversation
Contributor
Author
potiuk
approved these changes
Sep 13, 2026
potiuk
reviewed
Sep 13, 2026
potiuk
reviewed
Sep 13, 2026
potiuk
reviewed
Sep 13, 2026
potiuk
reviewed
Sep 13, 2026
VladaZakharova
suggested changes
Sep 23, 2026
VladaZakharova
left a comment
Contributor
There was a problem hiding this comment.
Overall LGTM, small fixes needed + answer Jarek's comments
AlejandroMorgante
force-pushed
the
add-gke-pod-exec-operator
branch
4 times, most recently
from
September 23, 2026 20:26
8db1378 to
8a7cc9e
Compare
Contributor
Author
|
All done. Thank you for your feedback! |
shahar1
previously requested changes
Oct 1, 2026
Airflow users with externally managed GKE Pods currently need to configure Kubernetes authentication separately or shell out to kubectl. Reusing Google Cloud connections removes that setup while keeping Pod lifecycle ownership external.
Constructor defaults are already defined by Python and do not protect provider-specific behavior.
Concurrent system test runs can share a Kubernetes namespace, so a fixed Pod name causes collisions between environments.
A separately installed cncf-kubernetes provider can lack the Pod exec operator, leaving GKE imports with an unhelpful import error. Report the required provider version when this happens.
Migrating an existing Kubernetes Pod exec task to GKE can pass Kubernetes authentication settings that the GKE operator owns. A clear validation error makes the required change evident to the Dag author.
GKEPodExecOperator depends on KubernetesPodExecOperator, introduced in Kubernetes provider 10.22.0. Generated-by: Codex (GPT-6)
AlejandroMorgante
force-pushed
the
add-gke-pod-exec-operator
branch
from
October 1, 2026 18:58
8a7cc9e to
9eed95a
Compare
shahar1
approved these changes
Oct 1, 2026
1 task done
1 task done
2 tasks done
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
GKEPodExecOperatorto execute commands in running containers of existing GKE Pods. The operator reusesKubernetesPodExecOperatorfor execution while the existing GKE mixin supplies Google Cloud authentication, impersonation, cluster discovery, and public, internal, or DNS endpoint selection.Unlike
GKEStartPodOperator, this operator does not create, restart, or delete the Pod. This supports workloads whose lifecycle is owned by another platform while avoiding the externalkubectl, kubeconfig, and shell setup otherwise needed from Airflow.This builds on #71244.
Validation:
execution in an existing Pod, output verification, Pod deletion, and cluster teardown.
The system test can be reproduced from the Airflow checkout with GCP credentials forwarded to Breeze,
SYSTEM_TESTS_GCP_PROJECTconfigured infiles/airflow-breeze-config/environment_variables.env, and a unique environment ID:Latest result:
1 passed in 1003.55s (0:16:43). The run completed resource teardown successfully.Was generative AI tooling used to co-author this PR?
Generated-by: Codex (GPT-5) following the guidelines