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/03/11 18:50:40 UTC
[GitHub] [airflow] uranusjr commented on issue #22154: Ambiguity of format for template fields in Airflow Kubernetes Operator (airflow.providers.cncf.kubernetes.operators.kubernetes_pod)
uranusjr commented on issue #22154:
URL: https://github.com/apache/airflow/issues/22154#issuecomment-1065394841
We should rewrite the documentation to say the attribute is only guaranteed to be a _sequence_, and maybe add some documentation to recommend using `*` instead. For your example, this is the safe syntax (without the overhead of creating a temporary list):
```python
template_fields = [*KubernetesPodOperator.template_fields, "name"]
```
--
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