<#1163 set ImageIdentifier.repository for custom r...
# flyte-github
a
#1163 set ImageIdentifier.repository for custom registries Pull request opened by dansola Set
ImageIdentifier.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