You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has anyone gotten kubectl_build to work with dependencies on other images expressed in the tiltfile?
We do support image_deps in the underlying custom_build now, but it hasn't been wired up for this extension.
Unfortunately, it's not as simple as passing through the argument, as the actual build command needs to understand how to consume the references that Tilt passes as TILT_IMAGE_i environment variables (where i is the index in image_deps arg).
Proposal
In practice, I can't see any way you'd use an image dependency (with the kubectl_build extension specifically) other than in an ARG.
I think a new parameter to kubectl_build could handle this -> image_deps_to_build_args: Dict[str, str] = None
I'm slightly conflicted about using a dict given the ordering importance, but it's much more ergonomic than a list of tuples, and from Starlark dict reference:
Dictionaries are iterable; iteration yields the sequence of keys in insertion order
The text was updated successfully, but these errors were encountered:
@nicks wdyt about this proposal? I both want to make sure I didn't miss any subtlety around image_deps wrt custom_build and sanity check that this is a reasonable approach for custom build extensions
Kristinn asked in Slack:
We do support
image_deps
in the underlyingcustom_build
now, but it hasn't been wired up for this extension.Unfortunately, it's not as simple as passing through the argument, as the actual build command needs to understand how to consume the references that Tilt passes as
TILT_IMAGE_i
environment variables (wherei
is the index inimage_deps
arg).Proposal
In practice, I can't see any way you'd use an image dependency (with the
kubectl_build
extension specifically) other than in anARG
.I think a new parameter to
kubectl_build
could handle this ->image_deps_to_build_args: Dict[str, str] = None
Then in
kubectl_build
:I'm slightly conflicted about using a
dict
given the ordering importance, but it's much more ergonomic than a list of tuples, and from Starlarkdict
reference:The text was updated successfully, but these errors were encountered: