Commit Graph

12 Commits

Author SHA1 Message Date
Markus Thömmes 565516e224
Add errorlint and fix all existing issues (#1855) 2020-10-29 01:14:35 -07:00
Victor Agababov 5ba6c1d101
Change %v to %w in errors and other nits (#1252)
* Change %v to %w in errors and other nits
Other are things I noticed when fixing the main %v->%w conversion

* fold
2020-04-27 15:04:51 -07:00
Chi Zhang 064b156ab7
Update and fixes to the cluster management lib (#1196)
* fix project in e2e cluster manager

* delete async for boskos

* use the right quota in the GKE requests

* update google cloud api

* update

* fix unit tests

* fix unit tests

* fix unit tests

* acquire always creates new

* support resolving GKE version

* go fmt

* delete version.go

* add more unit tests
2020-04-06 14:52:59 -07:00
Chi Zhang 7727cb37e0
Retry cluster creation if there's an error (#1186)
* retry cluster creation if there's an error

* nit renaming

* go fmt

* delete cluster async

* clean up the code a bit

* nits

* address comments

* fix unit tests

* nits

* go fmt

* fix unit tests
2020-04-03 09:23:18 -07:00
Joyce Liu 777b215a64
use boskos to fetch a project if only a project is not specified (#1169) 2020-03-23 12:45:09 -07:00
Chi Zhang 84c9a84d38
Add extra flags for cluster creation in test (#1033)
* add extra flags for cluster creation

* move flags out of request.go
2020-02-03 07:38:30 -08:00
Adriano Cunha 446f2e9f2c
Use e2 VMs instead of n1 for test clusters (#1024)
* Use n2 VMs instead of n1 for test clusters

* Update unit tests that use default values
2020-01-30 16:20:28 -08:00
Joyce Liu 400dfb9ff9 updated boskos client based on the latest API in k8s (#945)
* updated boskos client based on the latest API in k8s

* Added clarification comments and cleanup dead code

* Apply suggestions from code review

Co-Authored-By: Victor Agababov <vagababov@gmail.com>

* Updated test error messages in boskos_test.go

* clarification on parameters

* removed accidentally modified client/istio changes

* Fixed unit test for AcquireGKEProject

* Apply suggestions from code review

Co-Authored-By: Victor Agababov <vagababov@gmail.com>

* simplified NewClient + annotated NewClient in boskos_test.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>
2019-12-29 20:19:35 -08:00
Joyce Liu da3d090aa9 modify boskos in cluster manager to make the boskos resource type customizable (#922) 2019-12-03 16:45:36 -08:00
Joyce Liu c259ed6f2e Moved cluster name check to later so --get can use cluster name in kubeconfig (#918) 2019-12-02 15:50:35 -08:00
Markus Thömmes 56c2594e4f Assorted linting fixes. (#840)
* Remove unused code.

* Remove unneeded loops.

* Remove unneeded Printf calls.

* Use time.Since instead of time.Now().Sub.

* Remove unused values.

* Rename error variable according to conventions.

* Return error last.

* Simplify array allocations.

* Remove leaky ticker.

* Remove Yoda conditions.

* Remove deprecated function to talk to GKE.

* Remove dot import.

* Remove empty critical section and replace with a channel operation.

* Add linter directives to explicitly state wanted weirdness.

* Update deps.

* Fix broken line.
2019-11-01 12:49:12 -07:00
Chi Zhang 3f11504864 Some refactors of the pkg/test code (#763)
* some refactors of the pkg/test code

* move clustermanager

* fix unit tests

* address comments

* address feedback

* move clustermanager package

* add comments

* address comment
2019-10-15 23:03:15 -07:00