diff --git a/test/e2e-tests.sh b/test/e2e-tests.sh index fd42f5a6458..b6f7bccdf3d 100755 --- a/test/e2e-tests.sh +++ b/test/e2e-tests.sh @@ -264,8 +264,6 @@ echo "- Docker is ${KO_DOCKER_REPO}" trap teardown EXIT -install_ko - if (( ! USING_EXISTING_CLUSTER )); then # Start Knative Serving. @@ -289,8 +287,6 @@ else fi -(( IS_PROW )) && gcr_auth - # Clean up anything that might still be around... teardown_k8s_events_test_resources diff --git a/test/library.sh b/test/library.sh index d7544b1b42d..d470a6c24c8 100755 --- a/test/library.sh +++ b/test/library.sh @@ -33,12 +33,6 @@ readonly OG_K8S_CLUSTER="${K8S_CLUSTER_OVERRIDE}" readonly OG_K8S_USER="${K8S_USER_OVERRIDE}" readonly OG_KO_DOCKER_REPO="${KO_DOCKER_REPO}" -# Returns a UUID -function uuid() { - # uuidgen is not available in kubekins images - cat /proc/sys/kernel/random/uuid -} - # Simple header for logging purposes. function header() { echo "=================================================" @@ -96,31 +90,6 @@ function acquire_cluster_admin_role() { --user=$1 } -# Authenticates the current user to GCR in the current project. -function gcr_auth() { - echo "Authenticating to GCR" - # kubekins-e2e images lack docker-credential-gcr, install it manually. - # TODO(adrcunha): Remove this step once docker-credential-gcr is available. - gcloud components install docker-credential-gcr - docker-credential-gcr configure-docker - echo "Successfully authenticated" -} - -# Installs ko in $OUTPUT_GOBIN -function install_ko() { - GOBIN="${OUTPUT_GOBIN}" go install ./vendor/github.com/google/go-containerregistry/cmd/ko -} - -# Runs ko; prefers using the one installed by install_ko(). -# Parameters: $1..$n - arguments to ko -function ko() { - if [[ -e "${OUTPUT_GOBIN}/ko" ]]; then - "${OUTPUT_GOBIN}/ko" $@ - else - ko $@ - fi -} - # Waits until a namespace no longer exists # Parameters: $1 - namespace. function wait_until_namespace_does_not_exist() {