Fix build.sh deployment script 99/69599/1
authorVictor Morales <victor.morales@intel.com>
Mon, 1 Oct 2018 09:25:27 +0000 (02:25 -0700)
committerVictor Morales <victor.morales@intel.com>
Mon, 1 Oct 2018 09:25:27 +0000 (02:25 -0700)
The build.sh file didn't include the GOPATH variable which in some
cases was causing some building failures. This change includes a
source instruction at beginining of the file.

Change-Id: I718411fd90ede74decbaac7efc5c065aa5a853fc
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301

deployments/build.sh
src/k8splugin/Gopkg.lock

index 3a6ea85..a1f093a 100755 (executable)
 set -o nounset
 set -o pipefail
 
+source /etc/environment
+
 k8s_path="$(git rev-parse --show-toplevel)"
+export GOPATH=$k8s_path
 
 echo "Compiling source code"
 pushd $k8s_path/src/k8splugin/
index 4ccf69e..26ada7a 100644 (file)
     "k8s.io/api/apps/v1",
     "k8s.io/api/core/v1",
     "k8s.io/apimachinery/pkg/apis/meta/v1",
+    "k8s.io/apimachinery/pkg/runtime",
     "k8s.io/client-go/kubernetes",
     "k8s.io/client-go/kubernetes/fake",
     "k8s.io/client-go/kubernetes/scheme",
-    "k8s.io/client-go/kubernetes/typed/apps/v1",
-    "k8s.io/client-go/kubernetes/typed/core/v1",
     "k8s.io/client-go/tools/clientcmd",
     "k8s.io/client-go/util/homedir",
   ]