mirror of https://github.com/kubernetes/kops.git
Merge pull request #13476 from olemarkus/use-latest-lbc-test
Use latest stable release by default for scenario test
This commit is contained in:
commit
9f1947d831
|
|
@ -41,7 +41,7 @@ REPORT_DIR="${ARTIFACTS:-$(pwd)/_artifacts}/aws-lb-controller/"
|
|||
|
||||
# shellcheck disable=SC2164
|
||||
cd "$(mktemp -dt kops.XXXXXXXXX)"
|
||||
go get github.com/onsi/ginkgo/ginkgo
|
||||
go install github.com/onsi/ginkgo/ginkgo@latest
|
||||
|
||||
git clone https://github.com/kubernetes-sigs/aws-load-balancer-controller .
|
||||
|
||||
|
|
|
|||
|
|
@ -50,12 +50,6 @@ if [[ -z "${DISCOVERY_STORE-}" ]]; then
|
|||
DISCOVERY_STORE="${KOPS_STATE_STORE-}"
|
||||
fi
|
||||
|
||||
if [[ ${KOPS_IRSA-} = true ]]; then
|
||||
OVERRIDES="${OVERRIDES-} --override=cluster.spec.serviceAccountIssuerDiscovery.discoveryStore=${DISCOVERY_STORE}/${CLUSTER_NAME}/discovery"
|
||||
OVERRIDES="${OVERRIDES} --override=cluster.spec.serviceAccountIssuerDiscovery.enableAWSOIDCProvider=true"
|
||||
OVERRIDES="${OVERRIDES} --override=cluster.spec.iam.useServiceAccountExternalPermissions=true"
|
||||
fi
|
||||
|
||||
export GO111MODULE=on
|
||||
|
||||
if [[ -z "${AWS_SSH_PRIVATE_KEY_FILE-}" ]]; then
|
||||
|
|
@ -117,7 +111,7 @@ function kops-acquire-latest() {
|
|||
KOPS_BASE_URL=""
|
||||
fi
|
||||
$KUBETEST2 --build
|
||||
KOPS="${REPO_ROOT}/.bazelbuild/dist/linux/amd64/kops"
|
||||
KOPS="${REPO_ROOT}/.build/dist/linux/amd64/kops"
|
||||
KOPS_BASE_URL=$(cat "${REPO_ROOT}/.kubetest2/kops-base-url")
|
||||
export KOPS_BASE_URL
|
||||
echo "KOPS_BASE_URL=$KOPS_BASE_URL"
|
||||
|
|
@ -131,7 +125,11 @@ function kops-up() {
|
|||
create_args="${create_args} --zones=${ZONES}"
|
||||
fi
|
||||
if [[ -z "${K8S_VERSION-}" ]]; then
|
||||
K8S_VERSION="v1.22.1"
|
||||
K8S_VERSION="$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)"
|
||||
fi
|
||||
|
||||
if [[ ${KOPS_IRSA-} = true ]]; then
|
||||
create_args="${create_args} --discovery-store=${DISCOVERY_STORE}/${CLUSTER_NAME}/discovery"
|
||||
fi
|
||||
|
||||
${KUBETEST2} \
|
||||
|
|
|
|||
Loading…
Reference in New Issue