From e2dc5c2dd0042788697ade268ac5c24fe9dc2f8c Mon Sep 17 00:00:00 2001 From: Steven Webster Date: Tue, 12 May 2020 10:32:21 -0400 Subject: [PATCH] Fix sriov device plugin image build Previous commit d204f10ab5 introduced a build script to assist in building the SR-IOV device plugin. The script utilizes a Makefile to do build the plugin binary, then the image. Building the binary depends on go being present on the host. If it is not, the build will fail. Building the binary is actually not required, as it will be also done in a container as part of the 'make image', rather than copying the binary from the host. Closes-Bug: #1878224 Change-Id: I4499ea2bbef4b3da8a154c69a07b415574517500 Signed-off-by: Steven Webster --- .../centos/build-sriov-network-device-plugin-image.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kubernetes/plugins/sriov-network-device-plugin/centos/build-sriov-network-device-plugin-image.sh b/kubernetes/plugins/sriov-network-device-plugin/centos/build-sriov-network-device-plugin-image.sh index 7257663fe..441301c8c 100644 --- a/kubernetes/plugins/sriov-network-device-plugin/centos/build-sriov-network-device-plugin-image.sh +++ b/kubernetes/plugins/sriov-network-device-plugin/centos/build-sriov-network-device-plugin-image.sh @@ -14,12 +14,6 @@ if [ -z "${IMAGE_TAG}" ]; then exit 1 fi -make build -if [ $? -ne 0 ]; then - echo "Failed to build ${PROJECT}. Aborting..." >&2 - exit 1 -fi - make image if [ $? -ne 0 ]; then echo "Failed to make ${PROJECT} image. Aborting..." >&2