Skip to content

feat: implement case-insensitive cluster name handling#136

Open
cgrinds wants to merge 2 commits into
mainfrom
cbg-insensitive
Open

feat: implement case-insensitive cluster name handling#136
cgrinds wants to merge 2 commits into
mainfrom
cbg-insensitive

Conversation

@cgrinds
Copy link
Copy Markdown
Collaborator

@cgrinds cgrinds commented May 13, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 13, 2026 12:51
@cla-bot cla-bot Bot added the cla-signed label May 13, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Implements case-insensitive handling of configured cluster/poller names so that client requests using different casing resolve to the same canonical configuration entry.

Changes:

  • Added a clusterIndex lookup (lowercased name → canonical config name) and used it to resolve clusters in getClient and version caching.
  • Updated cluster version caching to use canonical names so cache entries are shared across input casing.
  • Normalized cluster lock keys to lowercase so locking is consistent across input casing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
server/server.go Adds clusterIndex and canonical name resolution for client creation and version cache keys.
server/lock/clusterlock.go Lowercases lock keys to make per-cluster locks case-insensitive.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread server/server.go
Comment thread server/server.go Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants