cuddly-jelly-27016
03/07/2025, 7:14 AMImageBuilderConfig to detect if there is user defined image_builder in config.yaml.
## How was this patch tested?
This patch can be tested by adding image_builder to ~/.flyte/config.yaml
image_builder:
uv_image: arbaobao/flytekit:uv
micromamba_image: arbaobao/flyte-test-images:micromamba-amd64
if we don't specify the image, the default images are ghcr.io/astral-sh/uv:0.5.1 and mambaorg/micromamba:2.0.3-debian12-slim.
### Setup process
1. Run a flyte sandbox and add image_builder to the config.yaml.
[Screenshot 2025-03-07 at 3 09 38 PM](https://private-user-images.githubusercontent.com/26268253/420230208-a851db8d-e900-4cd0-99d5-dbd41acccf51.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDEzMzY2NjQsIm5iZiI6MTc0MTMzNjM2NCwicGF0aCI6Ii8yNjI2ODI1My80MjAyMzAyMDgtYTg1MWRiOGQtZTkwMC00Y2QwLTk5ZDUtZGJkNDFhY2NjZjUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAzMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMzA3VDA4MzI0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcyMjU1ODYyNTFlOTEwYzg5ZThhYTQ2NGZkZWQ1OWI0MzFmYmE1OTEwMDc5MTBiMTg5MjU4Yjk5ZDc2NTU0MzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.webjir1-9ToZG1lb70z1NRTt4pnzS_IebI1oYj6I9Vs)2. if you are using image_spec to run the workflow, it will use the image that you specified to build the task image.[Screenshot 2025-03-07 at 3 09 01 PM](https://private-user-images.githubusercontent.com/26268253/420230016-737c9880-9111-457c-b831-5e2765b42150.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDEzMzY2NjQsIm5iZiI6MTc0MTMzNjM2NCwicGF0aCI6Ii8yNjI2ODI1My80MjAyMzAwMTYtNzM3Yzk4ODAtOTExMS00NTdjLWI4MzEtNWUyNzY1YjQyMTUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAzMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMzA3VDA4MzI0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTExODg0NTA3YzUwMmJlNDlkOGY0ODAwOTQ5NWNiNTdiMTNhYzQ2MTYxNDZhMjM2Mjc0ODQ0YmZhYzYwOTNhYWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.LrDvqzgB-VoQbW3spEwQ0loHhLC2nC7UZPs2dzoAF3o)
### Screenshots
## Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
## Related PRs
## Docs link
### Summary by Bito
This PR adds support for user-defined image builder configuration to enhance flexibility in offline or air-gapped environments. It refactors configuration classes to better separate default from user-defined settings, replacing legacy configuration with new classes including ImageBuilderConfig and updated DataConfig. Docker file templates are revised to allow users to override default images through configuration files.
Unit tests added: False
Estimated effort to review (1-5, lower is better): 2
flyteorg/flytekit