Skip to content

Commit

Permalink
Transfer PATH environment variable when delegating weave
Browse files Browse the repository at this point in the history
  • Loading branch information
clivez committed Mar 27, 2019
1 parent 6cf2b63 commit 5282744
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cnidel/cnidel.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ func getExecCniParams(cniType string, netInfo *danmtypes.DanmNet, ep *danmtypes.
"CNI_ARGS=" + os.Getenv("CNI_ARGS"),
"CNI_PATH=" + os.Getenv("CNI_PATH"),
}
if cniType == "weave-net" {
cniArgs = append([]string{
"PATH=" + os.Getenv("PATH"),
}, cniArgs...)
}
return cniPath, cniArgs, nil
}

Expand Down

0 comments on commit 5282744

Please sign in to comment.