<p>is there any way to pass JSON config from manual DAG run (the one from <code>dag_run.conf['attribute']</code> to KubernetesPodOperator?</p>
<p>Tried to use the Jinja template on the templated field in YAML, but got an error, <code>dag_run is not defined</code>.</p>
<pre class="lang-py prettyprint-override"><code>task_parse_raw_data = KubernetesPodOperator(
        namespace=NAMESPACE, 
        image='artifactory/image:tag',
        service_account_name='airflow',
        cmds=[&quot;sh&quot;, &quot;/current.sh&quot;],
        arguments=[ {{ dag_run.conf['date']}} ],
        ...)
</code></pre>

Simon Osipov
<p>You need to wrap the Jinja expression in quotes like so:</p>
<pre class="lang-py prettyprint-override"><code>arguments=[ &quot;{{ dag_run.conf['date'] }}&quot; ]
</code></pre>
