Remove overlaybd client path; warn on lazy_load_images#4843
Merged
Conversation
The overlaybd/lazy-loading image feature is dead on the platform side: - flyd no longer processes ImageRef.Layers (nomad-firecracker#3341) - The remote builder's /flyio/v1/buildOverlaybdImage endpoint is removed (rchab#43) Remove the client-side call path: the buildOverlaybdImage function, UseOverlaybd plumbing, and the overlaybd-specific test case. Keep [experimental] lazy_load_images parseable in fly.toml so existing configs don't break, but emit a deprecation warning when it's set to true. This gives customers a migration window to clean up their configs rather than silently doing nothing or hard-failing.
4 tasks
Member
Author
|
Bah! I setup prek but must’ve missed something. Will do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The overlaybd/lazy-loading image feature is dead on the platform side:
ImageRef.Layers— the overlaybd snapshotter was removed from hosts (nomad-firecracker#3341, merged 2025-05-22)./flyio/v1/buildOverlaybdImageendpoint — the overlaybd build stages were removed (rchab#43).Today, a customer with
[experimental] lazy_load_images = trueinfly.tomlgets a silently broken deploy: flyctl converts the image, but the platform ignores the layers. After the rchab endpoint removal, the POST would 404 and fall through to a normal build via the existingterminal.Warnf— strictly better, but we shouldn't leave dead code and a misleading config flag around.What changed
buildOverlaybdImagefunction and theUseOverlaybdcall path fromdockerfile_builder.goUseOverlaybd boolfrom theImageOptionsstruct inresolver.godaemon_url_test.goopts.UseOverlaybdplumbing fromdeploy_build.go[experimental] lazy_load_images = trueis set infly.tomlExperimental.LazyLoadImagesin the config schema so existingfly.tomlfiles still parse without errorDesign decision: warn, don't error
Customers who have
lazy_load_images = truein theirfly.tomlget a clear warning and a successful deploy — not a hard failure. This gives them a migration window to remove the stale flag without breaking their CI/CD pipelines.Test plan
go build ./...passesgo vet ./internal/...passesgo test ./internal/build/imgsrc/...passes[experimental] lazy_load_images = truein a test app'sfly.toml, runfly deploy --remote-only, verify:/flyio/v1/buildOverlaybdImage