HarryDunham opened a new issue #12100: URL: https://github.com/apache/airflow/issues/12100
Per the KubernetesPodOperator [template fields](https://airflow.apache.org/docs/stable/_api/airflow/contrib/operators/kubernetes_pod_operator/index.html#airflow.contrib.operators.kubernetes_pod_operator.KubernetesPodOperator.template_fields), `image` is listed as a parameter which can be templated. However, this is not reflected in the parameters documentation since it is missing the typical `(templated)` specifier within the docs. Additionally, it appears as though templating within the image parameter is not currently supported: ``` Failed to apply default image tag "ACC_ID.dkr.ecr.REGION.amazonaws.com/IMAGE_NAME:{{ dag_run.conf.image_version }}": couldn't parse image reference "ACC_ID.dkr.ecr.REGION.amazonaws.com/IMAGE_NAME:{{ dag_run.conf.image_version }}": invalid reference format ``` per the logs within our Kubernetes cluster (obviously with various fields within the URI removed). Therefore, should the [template fields](https://github.com/apache/airflow/blob/fcfc7f12421bd35a366324fe7814c90da8de5735/airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py#L145) be altered to reflect this behavior or is this a bug and not working as intended? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
