Skip to content

Commit eddc1bc

Browse files
committed
fix: increase validation cache
1 parent 4bb10c5 commit eddc1bc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/cache/cache.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ const (
4545
// DiscoveredCapacityCacheTTL is the time to drop discovered resource capacity data per-instance type
4646
// if it is not updated by a node creation event or refreshed during controller reconciliation
4747
DiscoveredCapacityCacheTTL = 60 * 24 * time.Hour
48+
// ValidationTTL is time to check authorization errors with validation controller
49+
ValidationTTL = 5 * time.Minute
4850
)
4951

5052
const (

pkg/operator/operator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func NewOperator(ctx context.Context, operator *operator.Operator) (context.Cont
144144
}
145145
unavailableOfferingsCache := awscache.NewUnavailableOfferings()
146146
ssmCache := cache.New(awscache.SSMCacheTTL, awscache.DefaultCleanupInterval)
147-
validationCache := cache.New(awscache.DefaultTTL, awscache.DefaultCleanupInterval)
147+
validationCache := cache.New(awscache.ValidationTTL, awscache.DefaultCleanupInterval)
148148

149149
subnetProvider := subnet.NewDefaultProvider(ec2api, cache.New(awscache.DefaultTTL, awscache.DefaultCleanupInterval), cache.New(awscache.AvailableIPAddressTTL, awscache.DefaultCleanupInterval), cache.New(awscache.AssociatePublicIPAddressTTL, awscache.DefaultCleanupInterval))
150150
securityGroupProvider := securitygroup.NewDefaultProvider(ec2api, cache.New(awscache.DefaultTTL, awscache.DefaultCleanupInterval))

0 commit comments

Comments
 (0)