<#4854 [Core feature] Accept template strings for ...
# flytekit
c
#4854 [Core feature] Accept template strings for SQLAlchemyTask container_image property Issue created by EternalDeiwos ### Motivation: Why do you think this is important? Currently attempting to use templates inside the
container_image
property produces an error:
Copy code
couldn't parse image reference "{{.images.default.fqn}}:{{.images.default.tag}}": invalid reference format
This particular error message is returned from Kubernetes when attempting to run the container for the task. My config is as follows: SQLAlchemyTask( "example.hello_mssql.sql_task", query_template=""" SELECT @@version version """, container_image="{{.images.default.fqn}}:{{.images.default.tag}}", output_schema_type=DataSchema, task_config=SQLAlchemyConfig( ... ), secret_requests=[*secrets.values()], ) ### Goal: What should the final outcome look like, ideally? The above config should work; as per the current `get_registerable_container_image` logic ### Describe alternatives you've considered Right now this must be hard-coded ### Propose: Link/Inline OR Additional context This needs to be wrapped in
get_registerable_container_image
(see slack messages). ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte