acoustic-carpenter-78188
06/04/2026, 11:16 PMImageIdentifier.repository for custom registries
When checking whether an image already exists, tell the backend which repo to look in.
Why: for images built with clone(registry=...), the existence check (GetImage) was
implicitly looking in the cluster's default repo, never finding the image, so it rebuilt every
run. Now we pass the custom registry/repo explicitly via the new ImageIdentifier.repository
field so the lookup hits. (SE-775)
Default-repo images send an empty repository, so nothing changes for them. Pulled the
detection into a small _custom_repository() helper with a unit test.
Depends on the flyteidl2 release that includes ImageIdentifier.repository — needs a
flyteidl2 version bump here once it's out.
flyteorg/flyte-sdk