From 053d04697acd74c45883058e81e422d731f06a0f Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Tue, 17 Apr 2018 12:45:29 -0400 Subject: [infra] Add service account override in gen_tasks.go. This CL is a prerequisite for re-landing https://skia-review.googlesource.com/c/skia/+/121481 Bug: skia:7050 No-Try: true Change-Id: Ice9d40c1df75734c1ec429be9cf4605a6098ce80 Reviewed-on: https://skia-review.googlesource.com/121490 Commit-Queue: Eric Boren Auto-Submit: Ben Wagner Reviewed-by: Eric Boren --- infra/bots/gen_tasks.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'infra/bots') diff --git a/infra/bots/gen_tasks.go b/infra/bots/gen_tasks.go index a52b4b282e..4191ff4643 100644 --- a/infra/bots/gen_tasks.go +++ b/infra/bots/gen_tasks.go @@ -68,6 +68,11 @@ var ( Pool string `json:"pool"` } + // alternateServiceAccount can be set in an init function to override the normal service accounts. + // Takes one of SERVICE_ACCOUNT_* constants as an argument and returns the service account that + // should be used, or uses sklog.Fatal to indicate a problem. + alternateServiceAccount func(serviceAccountEnum string) string + // alternateSwarmDimensions can be set in an init function to override the default swarming bot // dimensions for the given task. alternateSwarmDimensions func(parts map[string]string) []string -- cgit v1.2.3