Skip to content

Commit 4e88aa3

Browse files
authored
Merge pull request #1609 from k8s-infra-cherrypick-robot/cherry-pick-1607-to-release-1.23
[release-1.23] fix: inherit os environment when calling blobfuse2 in blobfuse-proxy
2 parents b8b1d45 + 3a0b5dd commit 4e88aa3

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)