-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathfactory.go
More file actions
32 lines (25 loc) · 901 Bytes
/
factory.go
File metadata and controls
32 lines (25 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.0
package aws
import (
"github.com/gardener/external-dns-management/pkg/controller/provider/aws/validation"
"github.com/gardener/external-dns-management/pkg/controller/provider/compound"
"github.com/gardener/external-dns-management/pkg/dns/provider"
)
const TYPE_CODE = validation.ProviderType
var rateLimiterDefaults = provider.RateLimiterOptions{
Enabled: true,
QPS: 9,
Burst: 10,
}
var advancedDefaults = provider.AdvancedOptions{
BatchSize: 50,
MaxRetries: 7,
}
var Factory = provider.NewDNSHandlerFactory(NewHandler, validation.NewAdapter()).
SetGenericFactoryOptionDefaults(provider.GenericFactoryOptionDefaults.
SetRateLimiterOptions(rateLimiterDefaults).SetAdvancedOptions(advancedDefaults))
func init() {
compound.MustRegister(Factory)
}