• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 25463881983
65%

Build:
DEFAULT BRANCH: main
Ran 06 May 2026 10:14PM UTC
Jobs 1
Files 718
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 May 2026 10:08PM UTC coverage: 64.79% (+0.008%) from 64.782%
25463881983

push

github

web-flow
Add Redis Cluster mode support to auth server storage (#5153)

* Add Redis Cluster mode support to auth server storage

Managed Redis services like GCP Memorystore Cluster and AWS ElastiCache
Serverless use the Redis Cluster protocol rather than standalone or Sentinel
connections, making it impossible to use them without this third mode.

- Add ClusterConfig/ClusterRunConfig types to storage and runner layers
- Wire cluster client creation via redis.NewClusterClient in NewRedisStorage
- Update validateConfig, convertRedisRunConfig, and buildStorageRunConfig to
  enforce three-way mutual exclusion (addr / sentinel / cluster)
- Add RedisClusterConfig CRD type with MinItems=1 validation; update CEL rule
  to require exactly one of the three modes
- Regenerate deepcopy, CRD YAML, and Helm chart templates
- Add unit tests for all new validation and happy-path code paths

Closes #5010

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Simplify Redis Cluster mode to addr + clusterMode bool

ClusterConfig{Addrs []string} was a misleading abstraction: GCP Memorystore
Cluster and AWS ElastiCache cluster mode both expose a single discovery endpoint,
so the slice always held exactly one address and was redundant with the existing
Addr field.

Replace ClusterConfig with a ClusterMode bool flag that is set alongside the
existing Addr field. go-redis NewClusterClient still receives the single endpoint
as []string{addr} and auto-discovers the full cluster topology from there.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Regenerate Swagger docs for cluster_mode field

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Regenerate CRD API reference docs for clusterMode field

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

39 of 41 new or added lines in 3 files covered. (95.12%)

63164 of 97491 relevant lines covered (64.79%)

58.6 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
83.62
0.17% pkg/authserver/storage/redis.go
Jobs
ID Job ID Ran Files Coverage
1 25463881983.1 06 May 2026 10:14PM UTC 718
64.79
GitHub Action Run
Source Files on build 25463881983
  • Tree
  • List 718
  • Changed 6
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25463881983
  • 20ced208 on github
  • Prev Build on main (#25463362294)
  • Next Build on main (#25478850346)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc