File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -242,20 +242,20 @@ func prepareBatches(maxItems int, items []string) [][]string {
242
242
// Configuration for AWS Cloud Provider
243
243
244
244
type awsConfig struct {
245
- Region string
246
- Upstreams []awsUpstream
245
+ Region string `yaml:"region"`
246
+ Upstreams []awsUpstream `yaml:"upstreams"`
247
247
}
248
248
249
249
type awsUpstream struct {
250
- Name string
250
+ Name string `yaml:"name"`
251
251
AutoscalingGroup string `yaml:"autoscaling_group"`
252
- Kind string
252
+ Kind string `yaml:"kind"`
253
253
FailTimeout string `yaml:"fail_timeout"`
254
254
SlowStart string `yaml:"slow_start"`
255
- Port int
256
- MaxConns int `yaml:"max_conns"`
257
- MaxFails int `yaml:"max_fails"`
258
- InService bool `yaml:"in_service"`
255
+ Port int `yaml:"port"`
256
+ MaxConns int `yaml:"max_conns"`
257
+ MaxFails int `yaml:"max_fails"`
258
+ InService bool `yaml:"in_service"`
259
259
}
260
260
261
261
func validateAWSConfig (cfg * awsConfig ) error {
Original file line number Diff line number Diff line change @@ -147,20 +147,20 @@ func (client *AzureClient) GetUpstreams() []Upstream {
147
147
}
148
148
149
149
type azureConfig struct {
150
- SubscriptionID string `yaml:"subscription_id"`
151
- ResourceGroupName string `yaml:"resource_group_name"`
152
- Upstreams []azureUpstream
150
+ SubscriptionID string `yaml:"subscription_id"`
151
+ ResourceGroupName string `yaml:"resource_group_name"`
152
+ Upstreams []azureUpstream `yaml:"upstreams"`
153
153
}
154
154
155
155
type azureUpstream struct {
156
- Name string
156
+ Name string `yaml:"name"`
157
157
VMScaleSet string `yaml:"virtual_machine_scale_set"`
158
- Kind string
158
+ Kind string `yaml:"kind"`
159
159
FailTimeout string `yaml:"fail_timeout"`
160
160
SlowStart string `yaml:"slow_start"`
161
- Port int
162
- MaxConns int `yaml:"max_conns"`
163
- MaxFails int `yaml:"max_fails"`
161
+ Port int `yaml:"port"`
162
+ MaxConns int `yaml:"max_conns"`
163
+ MaxFails int `yaml:"max_fails"`
164
164
}
165
165
166
166
func validateAzureConfig (cfg * azureConfig ) error {
You can’t perform that action at this time.
0 commit comments