bdsoha opened a new issue, #25588:
URL: https://github.com/apache/airflow/issues/25588
### Apache Airflow version
2.3.3
### What happened
Nested values, such as `env_vars` for the `KubernetesPodOperater` are not
being rendered when used as a dynamically mapped operator.
Assuming the following:
```python
op = KubernetesPodOperater.partial(
env_vars=[k8s.V1EnvVar(name='AWS_ACCESS_KEY_ID', value='{{
var.value.aws_access_key_id }}')],
# Other arguments
).expand(arguments=[[1], [2]])
```
The *Rendered Template* results for `env_vars` should be:
```
("[{'name': 'AWS_ACCESS_KEY_ID', 'value': 'some-super-secret-value',
'value_from': None}]")
```
Instead the actual *Rendered Template* results for `env_vars` are
un-rendered:
```
("[{'name': 'AWS_ACCESS_KEY_ID', 'value': '{{ var.value.aws_access_key_id
}}', 'value_from': None}]")
```
This is probably caused by the fact that `MappedOperator` is not calling
[`KubernetesPodOperater._render_nested_template_fields`](https://github.com/apache/airflow/blob/main/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py#L286).
### What you think should happen instead
_No response_
### How to reproduce
_No response_
### Operating System
Ubuntu 18.04
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other 3rd-party Helm chart
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]