push the script

This commit is contained in:
Sergey Dudoladov 2019-04-24 17:44:29 +02:00
parent 61bf835753
commit 264833cd6a
2 changed files with 12 additions and 1 deletions

View File

@ -45,7 +45,7 @@ pipeline:
cmd: |
export PATH=$PATH:$HOME/go/bin
cd $OPERATOR_TOP_DIR/postgres-operator
go get -u -v sigs.k8s.io/kind
go get -u sigs.k8s.io/kind
echo "INFO install kubectl to test 'kind' from client side"
(curl -LO --silent https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl &&
chmod +x ./kubectl &&

11
e2e/mock_e2e.sh Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# enable unofficial bash strict mode
set -o errexit
set -o nounset
set -o pipefail
IFS=$'\n\t'
kind create cluster --name kind-m2 --config ./e2e/kind-config-multikind.yaml --loglevel debug
export KUBECONFIG="$(kind get kubeconfig-path --name="kind-m")"
kubectl cluster-info