Skip to content

Conversation

@AutomationDev85
Copy link
Contributor

Overview

This PR aligns the startup behavior of KubernetesPodTriggerer and KubernetesPodOperator, ensuring both the synchronous and asynchronous workflows use the same code to track pod startup.

It incorporates changes from the preparation PR #56700, making this PR easier to review once merged. Additionally, PR #56872 is a prerequisite, as it grants the triggerer the necessary permissions to access pod events.

As this is a significant update, we welcome feedback from the community!

Details of change:

  • Creation of AsyncPodManager.
  • AsyncPodManager utilizes AsynKubernetesHook to interact with the KubernetesApi.
  • Both PodManager and AsyncPodManager now share code for accessing pod events and tracking pod startup.
  • Pytest suites have been updated accordingly.

@boring-cyborg boring-cyborg bot added area:providers provider:cncf-kubernetes Kubernetes (k8s) provider related issues labels Oct 20, 2025
@AutomationDev85 AutomationDev85 force-pushed the feature/KubernetesPodOperator-async-and-sync-use-the-same-start-code branch from 2df75db to 18c1f6a Compare October 20, 2025 09:22
@eladkal eladkal requested a review from romsharon98 October 20, 2025 12:12
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see where this is heading to - and thanks for the consolidation. Seems to be a bit of effort. Hope you are not scared by the amount of comments but a bit of rework is needed.

@AutomationDev85 AutomationDev85 force-pushed the feature/KubernetesPodOperator-async-and-sync-use-the-same-start-code branch from 18c1f6a to 18faa47 Compare October 21, 2025 12:35
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup and improvement. Looks good now. I'll leave the PR open for some other eyes to review, otherwise will merge the next day or so.

@jscheffl jscheffl merged commit a563fb0 into apache:main Oct 30, 2025
93 checks passed
Copilot AI pushed a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
…perator Now Share Common Startup Logic (apache#56875)

* Move container-related functions from PodManager to a separate file

* Moved unit tests

* Sync and async workflow use the same code to track Pod startup

* Reworked unit tests and pod startup logic

* Add api permission error detection for triggerer

* Fix pytest fixture

* Removed not requried code

---------

Co-authored-by: AutomationDev85 <AutomationDev85>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:cncf-kubernetes Kubernetes (k8s) provider related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants