Commit Graph

7 Commits

Author SHA1 Message Date
chaodaiG 7a2cadb6ad Modify cluster manager lib to make it work better with Prow (#755)
* Consolidate cluster manager lib

* Adjust unit test

* updates based on feedback

* Fixing unit tests

* Use project as string instead of pointer
2019-10-11 16:11:31 -07:00
Chi Zhang 9353a99265 Move GKE basic operations to a separate package (#737)
* move GKE basic operations to a separate package

* trying to fix unit tests...

* fix unit tests

* also move wait out

* move the clustercreaterequest out

* fix unit tests

* Update testutils/gke/request_test.go

Co-Authored-By: mattmoor-sockpuppet <mattmoor+sockpuppet@google.com>

* add a flag to indicate whether it's blocking

* address comments, unit tests pending

* bump up unit tests

* minor changes

* fix unit tests

* get zonal changes back, and a few minor changes

* clean up

* more clean up

* address codereview comments

* fix unit test

* remove project id from the request

* project name is not required

* fix unit tests
2019-10-03 15:39:06 -07:00
chaodaiG 346b0abf16 Clustermanager lib: don't expose initialize, calling it internally only, also allow skip cluster creation and force cleanup options (#734)
* Don't expose initialize, calling it internally only. Also allow skip
creation and force deletion to mimic the current behavior of test-infra

* Update testutils/clustermanager/gke.go

Co-Authored-By: Adriano Cunha <35786489+adrcunha@users.noreply.github.com>
2019-10-01 15:55:05 -07:00
mattmoor-sockpuppet 9c487c053f golang format tools (#729)
Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))`
  `goimports -w $(find -name '*.go' | grep -v vendor)`
/assign mattmoor
2019-09-30 07:17:48 -07:00
chaodaiG 339da85539 Cluster management lib: allow custom cluster name (#723)
* Cluster management lib: allow custom cluster name

* Apply suggestions from code review

Co-Authored-By: Chi Zhang <chizhg@google.com>

* Apply suggestions from code review

Co-Authored-By: Chi Zhang <chizhg@google.com>

* revert unit64 change

* Apply suggestions from code review

Co-Authored-By: Adriano Cunha <35786489+adrcunha@users.noreply.github.com>
2019-09-27 10:42:42 -07:00
chaodaiG 9d9cb54ed0 Cluster management lib: Add autoscaling to cluster creation (#692)
* Add autoscaling to cluster creation

* Apply suggestions from code review

Co-Authored-By: Adriano Cunha <35786489+adrcunha@users.noreply.github.com>

* fixing a test failure
2019-09-18 10:37:46 -07:00
chaodaiG 53eebd4e81 Cluster management lib: create cluster with addon (#687)
* Create cluster with addon

* Apply suggestions from code review

Co-Authored-By: Victor Agababov <vagababov@gmail.com>
Co-Authored-By: Adriano Cunha <35786489+adrcunha@users.noreply.github.com>
2019-09-16 16:06:46 -07:00