Skip to content

Commit

Permalink
fix: inherit os environment when calling blobfuse2 in blobfuse-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx authored and k8s-infra-cherrypick-robot committed Sep 19, 2024
1 parent 4f1879a commit d4b2c04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/blobfuse-proxy/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"context"
"fmt"
"net"
"os"
"os/exec"
"strings"
"sync"
Expand Down Expand Up @@ -85,7 +86,7 @@ func (server *MountServer) MountAzureBlob(_ context.Context,
cmd = exec.Command("blobfuse", strings.Split(args, " ")...)
}

cmd.Env = append(cmd.Env, authEnv...)
cmd.Env = append(os.Environ(), authEnv...)
output, err := cmd.CombinedOutput()
if err != nil {
klog.Error("blobfuse mount failed: with error:", err.Error())
Expand Down

0 comments on commit d4b2c04

Please sign in to comment.