Skip to content

v0.0.2b5

Pre-release
Pre-release

Choose a tag to compare

@pingsutw pingsutw released this 07 Aug 22:00
· 1 commit to upgrade-exec since this release
a6ad600

Pre-release.

Fix

  • Tolerate ImageSpec fields that older flytekit does not have.

The shim is pip-installed into the user's own v1 image, so it runs against whatever flytekit
that image was built with. flytekit.ImageSpec has gained fields over time, and reading an
absent one raised AttributeError during image translation, before any user code ran:

AttributeError: 'ImageSpec' object has no attribute 'pip_secret_mounts'

Verified against a real v1 image running flytekit 1.13.5, whose ImageSpec is missing three
of the fields the shim reads: pip_secret_mounts, pip_extra_args, and copy. These now go
through a helper that treats absent as unset.

Checked by installing the shim into that image and importing a deck example end to end.