Add supported locations of cloudfunction (#1863)

Cloudfunction facility is now supported in 4 locations.
This pull-request updates the list to catch up with it.
This commit is contained in:
Megumi Tomita 2018-08-15 09:07:43 +09:00 committed by Nathan McKinley
parent c810e4b408
commit 004c010b33

View File

@ -26,9 +26,9 @@ var functionAllowedMemory = map[int]bool{
2048: true,
}
// For now CloudFunctions are allowed only in us-central1
// For now CloudFunctions are allowed only in the following locations.
// Please see https://cloud.google.com/about/locations/
var validCloudFunctionRegion = validation.StringInSlice([]string{"us-central1"}, true)
var validCloudFunctionRegion = validation.StringInSlice([]string{"us-central1", "us-east1", "europe-west1", "asia-northeast1"}, true)
const functionDefaultAllowedMemoryMb = 256