@@ -32,16 +32,17 @@ import (
3232)
3333
3434var (
35- teardownCluster = flag .Bool ("teardown-cluster" , true , "teardown the cluster after the e2e test" )
36- teardownDriver = flag .Bool ("teardown-driver" , true , "teardown the driver after the e2e test" )
37- bringupCluster = flag .Bool ("bringup-cluster" , true , "build kubernetes and bringup a cluster" )
38- stagingImage = flag .String ("staging-image" , "" , "name of image to stage to" )
39- kubeVersion = flag .String ("kube-version" , "master" , "version of Kubernetes to download and use" )
40- inProw = flag .Bool ("run-in-prow" , false , "is the test running in PROW" )
41- saFile = flag .String ("service-account-file" , "" , "path of service account file" )
42- deployOverlayName = flag .String ("deploy-overlay-name" , "" , "which kustomize overlay to deploy the driver with" )
43- localK8sDir = flag .String ("local-k8s-dir" , "" , "local kubernetes/kubernetes directory to run e2e tests from" )
44- doDriverBuild = flag .Bool ("do-driver-build" , true , "building the driver from source" )
35+ teardownCluster = flag .Bool ("teardown-cluster" , true , "teardown the cluster after the e2e test" )
36+ teardownDriver = flag .Bool ("teardown-driver" , true , "teardown the driver after the e2e test" )
37+ bringupCluster = flag .Bool ("bringup-cluster" , true , "build kubernetes and bringup a cluster" )
38+ stagingImage = flag .String ("staging-image" , "" , "name of image to stage to" )
39+ kubeVersion = flag .String ("kube-version" , "master" , "version of Kubernetes to download and use" )
40+ inProw = flag .Bool ("run-in-prow" , false , "is the test running in PROW" )
41+ saFile = flag .String ("service-account-file" , "" , "path of service account file" )
42+ deployOverlayName = flag .String ("deploy-overlay-name" , "" , "which kustomize overlay to deploy the driver with" )
43+ localK8sDir = flag .String ("local-k8s-dir" , "" , "local kubernetes/kubernetes directory to run e2e tests from" )
44+ doDriverBuild = flag .Bool ("do-driver-build" , true , "building the driver from source" )
45+ boskosResourceType = flag .String ("boskos-resource-type" , "gce-project" , "name of the boskos resource type to reserve" )
4546)
4647
4748func init () {
@@ -83,7 +84,7 @@ func handle() error {
8384 k8sDir := filepath .Join (k8sIoDir , "kubernetes" )
8485
8586 if * inProw {
86- project , _ := testutils .SetupProwConfig ()
87+ project , _ := testutils .SetupProwConfig (* boskosResourceType )
8788
8889 oldProject , err := exec .Command ("gcloud" , "config" , "get-value" , "project" ).CombinedOutput ()
8990 if err != nil {
0 commit comments