Skip to content

Commit

Permalink
Use dev build of kops
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng Pan committed Oct 31, 2019
1 parent cebbd1e commit 294048c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions hack/run-e2e-test
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ source $(dirname "${BASH_SOURCE}")/utils/helm.sh

echo "Testing in region: $REGION and zones: $ZONES"

KOPS_DOWNLOAD_URL=https://github.com/kubernetes/kops/releases/download/1.14.0-alpha.1/kops-$OS_ARCH
#KOPS_DOWNLOAD_URL=https://github.com/kubernetes/kops/releases/download/1.14.0-alpha.1/kops-$OS_ARCH
KOPS_PATH=$TEST_DIR/kops
KOPS_STATE_FILE=s3://k8s-kops-csi-e2e

# Download kops if not yet
if [[ ! -e $KOPS_PATH ]]; then
mkdir -p $TEST_DIR
echo "Downloading KOPS from $KOPS_DOWNLOAD_URL to $KOPS_PATH"
curl -L -X GET $KOPS_DOWNLOAD_URL -o $KOPS_PATH
#echo "Downloading KOPS from $KOPS_DOWNLOAD_URL to $KOPS_PATH"
#curl -L -X GET $KOPS_DOWNLOAD_URL -o $KOPS_PATH
echo "Downloading KOPS from s3 to $KOPS_PATH"
aws s3 cp ${KOPS_STATE_FILE}/kops/bin/kops $KOPS_PATH
fi

chmod +x $KOPS_PATH
Expand All @@ -61,6 +63,7 @@ CLUSTER_YAML_PATH=$TEST_DIR/$CLUSTER_NAME.yaml
SSH_KEY_PATH=$TEST_DIR/id_rsa
ssh-keygen -P csi-e2e -f $SSH_KEY_PATH

export KOPS_BASE_URL=https://k8s-kops-csi-e2e.s3.amazonaws.com/kops/1.16.0-alpha.1/
$KOPS_PATH create cluster --state $KOPS_STATE_FILE \
--zones $ZONES \
--node-count=3 \
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e-migration/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ replace k8s.io/sample-controller => k8s.io/sample-controller v0.0.0-201909042007
require (
github.com/onsi/ginkgo v1.9.0
github.com/onsi/gomega v1.6.0
k8s.io/kubernetes v1.16.0-beta.2
k8s.io/kubernetes v1.16.1
)

0 comments on commit 294048c

Please sign in to comment.