Skip to content

Commit ea3799b

Browse files
authored
Merge pull request #1608 from k8s-infra-cherrypick-robot/cherry-pick-1607-to-release-1.24
[release-1.24] fix: inherit os environment when calling blobfuse2 in blobfuse-proxy
2 parents f1ad2b1 + e454d94 commit ea3799b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/blobfuse-proxy/server/server.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"context"
2121
"fmt"
2222
"net"
23+
"os"
2324
"os/exec"
2425
"strings"
2526
"sync"
@@ -85,7 +86,7 @@ func (server *MountServer) MountAzureBlob(_ context.Context,
8586
cmd = exec.Command("blobfuse", strings.Split(args, " ")...)
8687
}
8788

88-
cmd.Env = append(cmd.Env, authEnv...)
89+
cmd.Env = append(os.Environ(), authEnv...)
8990
output, err := cmd.CombinedOutput()
9091
if err != nil {
9192
klog.Error("blobfuse mount failed: with error:", err.Error())

0 commit comments

Comments
 (0)