@@ -74,18 +74,11 @@ type Environment struct {
74
74
// other fields.
75
75
ControlZone string
76
76
77
- // PreferredEC2Zone is the preffered AWS availability zone.
78
- PreferredEC2Zone string
79
-
80
77
// VMZones are the GCE zones that the VMs will be deployed to. These
81
78
// GCE zones will be periodically cleaned by deleting old VMs. The zones
82
79
// should all exist within a single region.
83
80
VMZones []string
84
81
85
- // VMEC2Zones are the AWS availability zones that the VMs will be deployed to.
86
- // The availability zones should all exist within a single region.
87
- VMEC2Zones []string
88
-
89
82
// StaticIP is the public, static IP address that will be attached to the
90
83
// coordinator instance. The zero value means the address will be looked
91
84
// up by name. This field is optional.
@@ -149,8 +142,6 @@ type Environment struct {
149
142
AWSSecurityGroup string
150
143
151
144
// AWSRegion is the region where AWS resources are deployed.
152
- // The availability zones set in VMEC2Zones should all reside
153
- // within this region.
154
145
AWSRegion string
155
146
}
156
147
@@ -168,16 +159,6 @@ func (e Environment) RandomVMZone() string {
168
159
return e .VMZones [rand .Intn (len (e .VMZones ))]
169
160
}
170
161
171
- // RandomEC2VMZone returns a randomly selected zone from the zones in
172
- // VMAvailabilityZones. The PreferredAvailabilityZone value will be
173
- // returned if VMAvailabilityZones is not set.
174
- func (e Environment ) RandomEC2VMZone () string {
175
- if len (e .VMEC2Zones ) == 0 {
176
- return e .PreferredEC2Zone
177
- }
178
- return e .VMEC2Zones [rand .Intn (len (e .VMEC2Zones ))]
179
- }
180
-
181
162
// Region returns the GCE region, derived from its zone.
182
163
func (e Environment ) Region () string {
183
164
return e .ControlZone [:strings .LastIndex (e .ControlZone , "-" )]
@@ -266,7 +247,6 @@ var Staging = &Environment{
266
247
IsProd : true ,
267
248
ControlZone : "us-central1-f" ,
268
249
VMZones : []string {"us-central1-a" , "us-central1-b" , "us-central1-c" , "us-central1-f" },
269
- VMEC2Zones : []string {"us-east-1a" , "us-east-1b" },
270
250
StaticIP : "104.154.113.235" ,
271
251
MachineType : "n1-standard-1" ,
272
252
PreferContainersOnCOS : true ,
@@ -302,7 +282,6 @@ var Production = &Environment{
302
282
IsProd : true ,
303
283
ControlZone : "us-central1-f" ,
304
284
VMZones : []string {"us-central1-a" , "us-central1-b" , "us-central1-c" , "us-central1-f" },
305
- VMEC2Zones : []string {"us-east-2a" , "us-east-2b" },
306
285
StaticIP : "107.178.219.46" ,
307
286
MachineType : "n1-standard-4" ,
308
287
PreferContainersOnCOS : true ,
0 commit comments