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 into
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 |
|
@tthvo: This pull request references Jira Issue OCPBUGS-85352, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/test verify-deps verify-codegen okd-scos-images images artifacts-images |
|
/test e2e-aws-ovn e2e-aws-eusc-techpreview |
|
/payload-job periodic-ci-openshift-verification-tests-main-installation-nightly-5.0-aws-ipi-shared-phz-f14 |
|
@tthvo: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/fc526cb0-4d62-11f1-81ac-0ba587b1f030-0 |
|
/verified by @tthvo in aws-cn and CI (for other partitions) |
|
@tthvo: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@tthvo: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/test e2e-aws-eusc-techpreview |
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.