Skip to content

Commit 0123d32

Browse files
committed
mount empty secrets
We should create the mount point for secret files even if the source secret file is empty. Otherwise it is hard to debug why secrets are not showing up when requested in the LLB. Currently they are just silently ignored which was pretty confusing. Signed-off-by: coryb <[email protected]>
1 parent 2254cfe commit 0123d32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solver/llbsolver/mounts/mount.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func (mm *MountManager) getSecretMountable(ctx context.Context, m *pb.Mount, g s
258258
}
259259
return nil
260260
})
261-
if err != nil || dt == nil {
261+
if err != nil {
262262
return nil, err
263263
}
264264
return &secretMount{mount: m, data: dt, idmap: mm.cm.IdentityMapping()}, nil

0 commit comments

Comments
 (0)