From 591f20f7990af4937fa09cd5384688dfd28611e9 Mon Sep 17 00:00:00 2001 From: Nick Sardo Date: Tue, 18 Apr 2017 12:56:11 -0700 Subject: [PATCH] Remove region check; remove debug early return --- controllers/gce/cmd/mode-updater/mode-updater.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/controllers/gce/cmd/mode-updater/mode-updater.go b/controllers/gce/cmd/mode-updater/mode-updater.go index 68166deb9..8dfeedcce 100644 --- a/controllers/gce/cmd/mode-updater/mode-updater.go +++ b/controllers/gce/cmd/mode-updater/mode-updater.go @@ -53,12 +53,6 @@ func main() { panic(fmt.Errorf("expected either %s or %s, actual: %v", balancingModeRATE, balancingModeUTIL, targetBalancingMode)) } - switch regionName { - case "asia-east1", "asia-northeast1", "europe-west1", "us-central1", "us-east1", "us-west1": - default: - panic(fmt.Errorf("expected a valid GCP region, actual: %v", regionName)) - } - igs = make(map[string]*compute.InstanceGroup) tokenSource, err := google.DefaultTokenSource( @@ -150,10 +144,6 @@ func main() { return } - if true { - return - } - // Performing update for 2+ backend services updateMultipleBackends() }