You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2025/07/01 05:15:22 UTC

Re: [PR] Add support for templating the DockerOperator `mounts` parameter [airflow]

potiuk commented on code in PR #52451:
URL: https://github.com/apache/airflow/pull/52451#discussion_r2176444650


##########
providers/docker/src/airflow/providers/docker/operators/docker.py:
##########
@@ -291,6 +298,8 @@ def __init__(
         self.tmp_dir = tmp_dir
         self.user = user
         self.mounts = mounts or []
+        for mount in self.mounts:
+            mount.template_fields = ("Source", "Target", "Type")

Review Comment:
   Oh wow... I had no idea you can do that :)



-- 
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