Last active
March 25, 2018 16:44
-
-
Save chrislovecnm/bcd2c2231e7db3d25d523bb7dcf3e579 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
test-kubetest() { | |
export GOPATH=$HOME/Workspace | |
KOPS_FEATURE_FLAGS=+SpecOverrideFlag | |
KOPS_STATE_STORE=gs://chlove-state-store/ | |
cd $GOPATH/src/k8s.io/kubernetes | |
MYIP=$(curl ipinfo.io | jq -r .ip) | |
RELEASE="ci/latest" | |
VERSION=$(gsutil cat gs://kubernetes-release-dev/$RELEASE.txt) | |
KOPS_VERSION=https://storage.googleapis.com/kubernetes-release-dev/ci/$VERSION | |
CLUSTER=chlove.k8s.local | |
ETCD=3.1.12 | |
$GOPATH/src/k8s.io/test-infra/bazel-bin/kubetest/linux_amd64_pure_stripped/kubetest \ | |
--kops=$GOPATH/bin/kops \ | |
--kops-ssh-key=$HOME/.ssh/google_compute_engine \ | |
--deployment=kops \ | |
--build=bazel \ | |
--kops-kubernetes-version=$KOPS_VERSION \ | |
--kops-admin-access=${MYIP}/32 \ | |
--gcp-project=chlove-57705 \ | |
--up --down --test \ | |
--provider=gce \ | |
--ginkgo-parallel '--test_args=--ginkgo.flakeAttempts=2 --ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[HPA\]|Dashboard|Services.*functioning.*NodePort' \ | |
--cluster=$CLUSTER \ | |
--kops-state=$KOPS_STATE_STORE \ | |
--kops-nodes=3 \ | |
--kops-ssh-user=admin \ | |
--kops-zones=us-central1-a \ | |
--kops-etcd-version=$ETCD | |
} | |
test-kubetest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment