Skip to content

Allow GKE Autopilot clusters without node pools and stop GKE pod trigger reviving should_delete_pod - #69876

Merged
henry3260 merged 3 commits into
apache:mainfrom
viiccwen:fix-google-gke-system-dag-deprecations
Oct 18, 2026
Merged

henry3260 merged 3 commits into
apache:mainfrom
viiccwen:fix-google-gke-system-dag-deprecations

Conversation

@viiccwen

@viiccwen viiccwen commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

This follow-up to #69822 fixes a separate problem exposed after the Vertex AI Feature Store system
Dag no longer blocked the generic import and serialization path.

Five Google Kubernetes Engine system Dags configured initial_node_count at the cluster level,
which the GKE API deprecates in favor of NodePool.initial_node_count. The three Standard cluster
examples now configure the initial node count on an explicit default-pool node pool.

The other two examples create Autopilot clusters. Because GKE manages their nodes and node pools,
they remove the deprecated cluster-level node count without adding a user-managed node pool.
GKECreateClusterOperator validation now permits this valid Autopilot payload while leaving Standard
cluster validation unchanged. This validation change is required in the same PR because it runs when
the operator is constructed during Dag import.

closes #69825

Screenshot

result: collected 6; failures=1; errors=0; skipped=0
Sole failure: example_kubernetes_engine_async.py::test_run

  PASS  example_kubernetes_engine.py::test_run
  PASS  example_kubernetes_engine_job.py::test_run
  PASS  example_kubernetes_engine_kueue.py::test_run
  PASS  example_kubernetes_engine_ray.py::test_run
  PASS  example_kubernetes_engine_resource.py::test_run

Async after fix: PASS — 1 passed in 861.77s (0:14:21)

Final cleanup: GKE clusters=0; active operations=0

Was generative AI tooling used to co-author this PR?
  • Yes - GPT-5.6 Sol

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@viiccwen
viiccwen requested a review from shahar1 as a code owner July 14, 2026 14:59
@boring-cyborg boring-cyborg Bot added area:providers provider:google Google (including GCP) related issues labels Jul 14, 2026
@viiccwen

Copy link
Copy Markdown
Contributor Author

cc @shahar1, @henry3260. 🙌

@viiccwen
viiccwen force-pushed the fix-google-gke-system-dag-deprecations branch from 1bf5cc2 to 4847b3e Compare July 14, 2026 15:04

@henry3260 henry3260 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please correct me if I’m wrong.

@viiccwen
viiccwen force-pushed the fix-google-gke-system-dag-deprecations branch from 4847b3e to 88c565e Compare July 15, 2026 12:23
@viiccwen

Copy link
Copy Markdown
Contributor Author

cc @henry3260. 🙌

@viiccwen

viiccwen commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Hello @henry3260, politely tag for further review.

@VladaZakharova

VladaZakharova commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Hi there!
Thanks for PR, can you please attach screenshot of successful system tests for gke?
Please also check test case with autopilot.enabled=False without a node pool as a negative unit case, to prove Standard validation remains unchanged.

Do you think that system test for Ray with the same configuration using node pool also needs changes?

Cluster-level node settings emit provider deprecation warnings, while Autopilot manages its own nodes and cannot use user-managed node pools.

Signed-off-by: viiccwen <vicwen@apache.org>
Autopilot clusters manage their own node pools, while Standard validation must continue rejecting missing node pool configurations. Deferrable pod tests also need to resume without reconstructing deprecated trigger arguments.
@viiccwen
viiccwen force-pushed the fix-google-gke-system-dag-deprecations branch from 88c565e to d8aa435 Compare September 20, 2026 14:12
@viiccwen

Copy link
Copy Markdown
Contributor Author

Hi there! Thanks for PR, can you please attach screenshot of successful system tests for gke? Please also check test case with autopilot.enabled=False without a node pool as a negative unit case, to prove Standard validation remains unchanged.

Do you think that system test for Ray with the same configuration using node pool also needs changes?

Thanks! I already tested and updated PR description.

I also found should_delete_pod should be remove recently (until 2026/10/06), I'll open follow-up PR to remove this.

@shahar1 shahar1 changed the title Fix google gke system dag deprecations Allow GKE Autopilot clusters without node pools and stop GKE pod trigger reviving should_delete_pod Oct 17, 2026
@shahar1
shahar1 requested a review from henry3260 October 17, 2026 20:17
@shahar1

shahar1 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

@henry3260 could you please re-review?

@henry3260 henry3260 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@henry3260
henry3260 merged commit 4bc581a into apache:main Oct 18, 2026
86 checks passed
@viiccwen
viiccwen deleted the fix-google-gke-system-dag-deprecations branch October 18, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Google GKE system Dags use deprecated cluster fields

4 participants