romsharon98 commented on code in PR #43601:
URL: https://github.com/apache/airflow/pull/43601#discussion_r1826990587


##########
providers/src/airflow/providers/cncf/kubernetes/operators/pod.py:
##########
@@ -388,7 +390,8 @@ def __init__(
         self.priority_class_name = priority_class_name
         self.pod_template_file = pod_template_file
         self.pod_template_dict = pod_template_dict
-        self.name = self._set_name(name)
+        name = self._set_name(name)
+        self.name = name

Review Comment:
   I think the solution here will be to move this to the execute part.
   ```python
           name = self._set_name(name)
   ```
   because if `name` contains jinja, it will be rendered in the execute and 
then we can sent it to the `_set_name` function.



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

Reply via email to