From 7102a16f0100f89baef74a9460c8c5197215b30b Mon Sep 17 00:00:00 2001 From: Clive Zhang Date: Wed, 27 Mar 2019 16:27:15 +0800 Subject: [PATCH] Transfer PATH environment variable when delegating weave --- pkg/cnidel/cnidel.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cnidel/cnidel.go b/pkg/cnidel/cnidel.go index 427cd52f..624638d2 100644 --- a/pkg/cnidel/cnidel.go +++ b/pkg/cnidel/cnidel.go @@ -163,6 +163,7 @@ func getExecCniParams(cniType string, netInfo *danmtypes.DanmNet, ep *danmtypes. "CNI_IFNAME=" + ep.Spec.Iface.Name, "CNI_ARGS=" + os.Getenv("CNI_ARGS"), "CNI_PATH=" + os.Getenv("CNI_PATH"), + "PATH=" + os.Getenv("PATH"), } return cniPath, cniArgs, nil }