Skip to content

Commit bec5b0e

Browse files
authored
Fix zone caching (#300)
* Fix zone caching * Update CHANGELOG
1 parent f51530f commit bec5b0e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Fix caching of Route 53 zones
13+
1014
## [0.23.0] - 2025-10-01
1115

1216
### Changed

pkg/aws/route53.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func (r *Route53) GetHostedZoneIdByName(ctx context.Context, logger logr.Logger,
280280
// If the response was considered fully valid above, cache all returned zones
281281
for _, hostedZone := range listResponse.HostedZones {
282282
cacheKey := strings.TrimSuffix(*hostedZone.Name, ".")
283-
r.zoneNameToIdCache.SetDefault(cacheKey, foundZoneId)
283+
r.zoneNameToIdCache.SetDefault(cacheKey, sanitizeZoneId(*hostedZone.Id))
284284
}
285285

286286
if foundZoneId == "" {

0 commit comments

Comments
 (0)