bujjibabukatta opened a new pull request, #70922:
URL: https://github.com/apache/airflow/pull/70922

   **Summary**
   DataprocCreateClusterOperator's deprecated keyword-based cluster
   construction built cluster_config in __init__, using individually
   templated kwargs (zone, cluster_name, project_id, ...) before rendering.
   
   **Root cause**
   ClusterGenerator(**kwargs).make() ran in __init__. These kwargs aren't
   declared as template fields, so Jinja expressions passed this way never
   got rendered before being baked into cluster_config.
   
   **Fix**
   Stash the raw kwargs in a new template field (_legacy_cluster_kwargs)
   instead of building cluster_config immediately. Being a template field, it
   survives DAG serialization and gets rendered automatically. cluster_config
   is now built in execute(), after rendering.
   
   closes: #70296
   
   Was generative AI tooling used ?
   
   - [X] Yes - Claude
   
   Generated-by: Claude following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to