Skip to content

Commit

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

[release-1.22] fix: inherit os environment when calling blobfuse2 in blobfuse-proxy
  • Loading branch information
k8s-ci-robot committed Sep 20, 2024
2 parents 4f1879a + d4b2c04 commit 3f48243
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 3f48243

Please sign in to comment.