acoustic-carpenter-78188
06/17/2026, 4:17 PM_serialized_pod_spec (app serde) replaced the primary container's resources wholesale with the cpu/mem/gpu derived from app_env.resources, silently dropping extended-resource requests that can only be expressed on the pod template — notably the smarter-devices/fuse device-plugin resource added by PodTemplate.allow_fuse().
This merges the app-declared resources into whatever the pod template's primary container already set (app-declared keys win on conflict), mirroring the existing task-serde resource merge.
Why
Without the merge, a Knative app that used allow_fuse() got CAP_SYS_ADMIN but no /dev/fuse device, so mounting a flyteplugins.union Volume from inside the app failed (mknod /dev/fuse: permission denied / fusermount3: fuse device not found). After the fix, verified end-to-end on canary: the app pod carries smarter-devices/fuse, the volume mounts, and the app serves a file from it.
Test
tests/flyte/app/runtime/test_app_serde.py::test_serialized_pod_spec_merges_resources_preserving_extended — asserts a pod-template smarter-devices/fuse request survives the merge alongside the app-declared cpu/memory.
Note
This branch originally added `Image.with_install_fuse()`; that helper was removed after we proved a Volume mount needs only the fuse3 apt package (the /etc/mtab symlink it also added is unnecessary — slim bases omit /etc/mtab and libfuse skips the mtab update when it's absent). The Volumes docs now show .with_apt_packages("fuse3") directly. The net diff of this PR is the app-serde resource-merge fix.
🤖 Generated with Claude Code
flyteorg/flyte-sdkacoustic-carpenter-78188
06/18/2026, 5:55 PM