Skip to content

Commit

Permalink
Merge pull request #1609 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1607-to-release-1.23

[release-1.23] fix: inherit os environment when calling blobfuse2 in blobfuse-proxy
  • Loading branch information
k8s-ci-robot authored Sep 20, 2024
2 parents b8b1d45 + 3a0b5dd commit 4e88aa3
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 4e88aa3

Please sign in to comment.