OCPBUGS-85352: aws: fix Route 53 resource leak during cluster destroy in China regions#10544
OCPBUGS-85352: aws: fix Route 53 resource leak during cluster destroy in China regions#10544tthvo wants to merge 1 commit intoopenshift:mainfrom
Conversation
When destroying a cluster in cn-north-1, the installer was not searching cn-northwest-1 for tagged resources. Since Route 53 is a global service within the aws-cn partition, hosted zones need to be discovered via the cn-northwest-1 region regardless of which China region was used for installation. This adds cross-region tag client search for China regions (mirroring the existing GovCloud pattern) and also adds the aws-cn partition case to the shared hosted zone tag region resolution. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
WalkthroughUpdated AWS-China region handling in the cluster destroy workflow. When creating the cross-account Resource Groups Tagging API client, the code now maps Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.1)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Comment |
|
/tide refresh |
When destroying a cluster in cn-north-1, the installer was not searching
cn-northwest-1for tagged resources. Since Route 53 is a global service within theaws-cnpartition, hosted zones need to be discovered via thecn-northwest-1region regardless of which China region was used for installation. See AWS docs.This adds cross-region tag client search for China regions (mirroring the existing GovCloud pattern) and also adds the
aws-cnpartition case to the shared hosted zone tag region resolution.Summary by CodeRabbit
cn-north-1andcn-northwest-1regions, improving the reliability and completeness of resource cleanup operations.