Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Remove GKE hardcoded version
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres committed Oct 2, 2018
1 parent 95cbfe2 commit 6f7a1d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defaults: &defaults
BUILDER_IMAGE_NAME: kubeless/function-image-builder
CGO_ENABLED: "0"
TEST_DEBUG: "1"
GKE_VERSION: 1.9.7-gke.5
GKE_VERSION: 1.9
MINIKUBE_VERSION: v0.25.2
MANIFESTS: kubeless kubeless-non-rbac kubeless-openshift
exports: &exports
Expand Down
5 changes: 4 additions & 1 deletion script/start-gke-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

CLUSTER=${1:?}
ZONE=${2:?}
VERSION=${3:?}
BRANCH=${3:?}
ADMIN=${4:?}

# Resolve latest version from a branch
VERSION=$(gcloud container get-server-config --zone $ZONE --format='yaml(validMasterVersions)' 2> /dev/null | grep $BRANCH | awk '{print $2}' | head -n 1)

function clean() {
local resource=${1:?}
kubectl get $resource | awk '{print $1}' | xargs kubectl delete $resource || true
Expand Down

0 comments on commit 6f7a1d6

Please sign in to comment.