X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=cmd%2Fbpa-operator%2Fbpa_operator_launch.sh;h=7152fc2b0d19781ed0d7049d5ea4650bba300e15;hb=refs%2Fchanges%2F25%2F1425%2F2;hp=8f01718e7dda07f0ea709afb08e14c8de4f0b4e2;hpb=933a4fc772ef3b0e96ad3517027441d3997555c3;p=icn.git diff --git a/cmd/bpa-operator/bpa_operator_launch.sh b/cmd/bpa-operator/bpa_operator_launch.sh index 8f01718..7152fc2 100755 --- a/cmd/bpa-operator/bpa_operator_launch.sh +++ b/cmd/bpa-operator/bpa_operator_launch.sh @@ -3,9 +3,18 @@ #Get Go ENV variables eval "$(go env)" +export GO111MODULE=on +go get -d github.com/operator-framework/operator-sdk # This will download the git repository and not install it +pushd $GOPATH/src/github.com/operator-framework/operator-sdk +git checkout master +make tidy +make install +popd + #Copy bpa operator directory to the right path +kubectl create -f $PWD/deploy/crds/bpa_v1alpha1_provisioning_crd.yaml echo $GOPATH -mkdir -p $GOPATH/github.com/ && cp -r $PWD/cmd/bpa-operator $GOPATH/github.com/bpa-operator -pushd $GOPATH/github.com/bpa-operator +mkdir -p $GOPATH/src/github.com/ && cp -r $PWD $GOPATH/src/github.com/bpa-operator +pushd $GOPATH/src/github.com/bpa-operator operator-sdk up local --kubeconfig $HOME/.kube/config popd