[autoroll] Fix push-helper for Google3
Change-Id: I6a076d799d5afafd55420e7adaf617de00e9d297
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/233161
Commit-Queue: Eric Boren <borenet@google.com>
Reviewed-by: Ravi Mistry <rmistry@google.com>
diff --git a/autoroll/go/push-helper/main.go b/autoroll/go/push-helper/main.go
index 922ca0c..c19f185 100644
--- a/autoroll/go/push-helper/main.go
+++ b/autoroll/go/push-helper/main.go
@@ -55,6 +55,9 @@
// Google Cloud projects used by the autoroller.
PROJECT_PUBLIC = "skia-public"
PROJECT_CORP = "google.com:skia-corp"
+
+ // Parent repo name for Google3 rollers.
+ GOOGLE3_PARENT_NAME = "Google3"
)
var (
@@ -335,6 +338,10 @@
if *updateBeImage || *updateRollerConfig {
tmplBe := "./go/autoroll-be/autoroll-be.yaml.template"
for cfgFile, config := range configs {
+ // Google3 uses a different type of backend.
+ if config.ParentName == GOOGLE3_PARENT_NAME {
+ continue
+ }
dst := filepath.Join(cfgDir.K8sConfigDir, fmt.Sprintf("autoroll-be-%s.yaml", strings.Split(cfgFile, ".")[0]))
// If the k8s file doesn't exist yet or the user supplied the