Skip to content

Commit 623a31f

Browse files
committed
Update tags
1 parent 2424340 commit 623a31f

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

cmd/sync/aws.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,20 +242,20 @@ func prepareBatches(maxItems int, items []string) [][]string {
242242
// Configuration for AWS Cloud Provider
243243

244244
type awsConfig struct {
245-
Region string
246-
Upstreams []awsUpstream
245+
Region string `yaml:"region"`
246+
Upstreams []awsUpstream `yaml:"upstreams"`
247247
}
248248

249249
type awsUpstream struct {
250-
Name string
250+
Name string `yaml:"name"`
251251
AutoscalingGroup string `yaml:"autoscaling_group"`
252-
Kind string
252+
Kind string `yaml:"kind"`
253253
FailTimeout string `yaml:"fail_timeout"`
254254
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"`
259259
}
260260

261261
func validateAWSConfig(cfg *awsConfig) error {

cmd/sync/azure.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,20 @@ func (client *AzureClient) GetUpstreams() []Upstream {
147147
}
148148

149149
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"`
153153
}
154154

155155
type azureUpstream struct {
156-
Name string
156+
Name string `yaml:"name"`
157157
VMScaleSet string `yaml:"virtual_machine_scale_set"`
158-
Kind string
158+
Kind string `yaml:"kind"`
159159
FailTimeout string `yaml:"fail_timeout"`
160160
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"`
164164
}
165165

166166
func validateAzureConfig(cfg *azureConfig) error {

0 commit comments

Comments
 (0)