install pinned kind version to well-known location

This commit is contained in:
Sergey Dudoladov 2019-05-13 12:23:39 +02:00
parent e985107090
commit 66a6d81bc0
3 changed files with 6 additions and 7 deletions

View File

@ -96,7 +96,9 @@ e2e-build:
docker build --tag="postgres-operator-e2e-tests" -f e2e/Dockerfile .
e2e-tools:
@go get -u sigs.k8s.io/kind
wget https://github.com/kubernetes-sigs/kind/releases/download/0.2.1/kind-linux-amd64
chmod +x kind-linux-amd64
mv kind-linux-amd64 /tmp/kind
e2e-run: docker
e2e/run.sh

View File

@ -43,13 +43,8 @@ pipeline:
go test ./...
- desc: 'Run e2e tests'
cmd: |
export PATH=$PATH:$HOME/go/bin
cd $OPERATOR_TOP_DIR/postgres-operator
wget https://github.com/kubernetes-sigs/kind/releases/download/0.2.1/kind-linux-amd64
chmod +x kind-linux-amd64
mv kind-linux-amd64 /tmp/kind
export PATH=$PATH:/tmp
make e2e-build e2e-run
make e2e-tools e2e-build e2e-run
- desc: 'Push docker image'
cmd: |
export PATH=$PATH:$HOME/go/bin

View File

@ -6,6 +6,8 @@ set -o nounset
set -o pipefail
IFS=$'\n\t'
export PATH=$PATH:/tmp/kind
readonly cluster_name="postgres-operator-e2e-tests"
readonly operator_image=$(docker images --filter=reference="registry.opensource.zalan.do/acid/postgres-operator" --format "{{.Repository}}:{{.Tag}}" | head -1)
readonly e2e_test_image=${cluster_name}