Fall back to secret for SQS queue URL when SourceCrawler CR doesn't set it - #326
Conversation
PuneetPunamiya
commented
Aug 17, 2026
- SourceCrawler now reads SOURCE_S3_SQS_QUEUE_URL from its secretRef as a fallback, so pipeline authors don't have to hardcode the queue URL by hand.
…et it SourceCrawler now reads SOURCE_S3_SQS_QUEUE_URL from its secretRef as a fallback, so pipeline authors don't have to hardcode the queue URL by hand.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan includes up to 12 reviews per rolling hour; 11 remain after this review. 📝 WalkthroughSummary by CodeRabbit
WalkthroughThe controller now resolves an SQS queue URL from a referenced Kubernetes Secret when the S3 crawler has no queue URL configured. The new helper reads the prefixed Secret key and propagates lookup errors. ChangesSQS secret fallback
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change lets SourceCrawler obtain the SQS queue URL from its secret when the custom resource omits it; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant SourceCrawlerController
participant SQSQueueURLFromSecret
participant KubernetesSecretAPI
SourceCrawlerController->>SQSQueueURLFromSecret: request SOURCE_S3_ queue URL
SQSQueueURLFromSecret->>KubernetesSecretAPI: fetch namespaced Secret
KubernetesSecretAPI-->>SQSQueueURLFromSecret: return queue URL or error
SQSQueueURLFromSecret-->>SourceCrawlerController: apply fallback or report error
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |