Skip to content

Commit fb3b163

Browse files
committed
Ensure we switch to k8s root directory for dockerized builds during e2e-node ci job
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent 8cca6d9 commit fb3b163

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/e2e_node/builder/build.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ func BuildTargets(cgo bool) error {
7777
klog.Infof("Building dockerized k8s binaries targets %s for architecture %s", targets, GetTargetBuildArch())
7878
// Multi-architecture build is only supported in dockerized build
7979
cmd = exec.Command(filepath.Join(k8sRoot, "build/run.sh"), "make", fmt.Sprintf("WHAT=%s", what), fmt.Sprintf("KUBE_BUILD_PLATFORMS=%s", GetTargetBuildArch()))
80+
// Ensure we run this command in k8s root directory for dockerized build
81+
cmd.Dir = k8sRoot
8082
}
8183
cmd.Stdout = os.Stdout
8284
cmd.Stderr = os.Stderr

0 commit comments

Comments
 (0)