<#1007 Resolve --builder default from flytectl con...
# flyte-github
a
#1007 Resolve --builder default from flytectl config Pull request opened by pingsutw Summary •
--image-builder
(
--builder
) previously defaulted to
"local"
, silently overriding any
image.builder
set in the flytectl config • Change the CLI default to
None
so the config value is used when the flag is omitted •
init_from_config
now falls back to
"local"
only when neither the flag nor
cfg.image.builder
is set Precedence: explicit
--builder
>
cfg.image.builder
(from
--config
or auto-discovered) >
"local"
. Test plan •
uv run pytest tests/user_api/test_initialize.py -k image_builder
— 3 new tests pass •
flyte --help
still works • Manual:
flyte run ...
with
image.builder: remote
in config uses the remote builder • Manual:
flyte --builder local run ...
still forces local flyteorg/flyte-sdk