You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/05/15 07:39:38 UTC
[GitHub] [airflow] lior1990 commented on pull request #23531: make resources for KubernetesPodTemplate templated
lior1990 commented on PR #23531:
URL: https://github.com/apache/airflow/pull/23531#issuecomment-1126878905
Suggestion: you can modify `_render_nested_template_fields` in `KubernetesPodOperator` and add the following code, right after the custom code that is handling `k8s.V1EnvVar`:
```
if id(content) not in seen_oids and isinstance(content, k8s.V1ResourceRequirements):
seen_oids.add(id(content))
self._do_render_template_fields(content, ("limits", "requests"), context, jinja_env, seen_oids)
return
````
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org