-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add the possibility to overwrite the cache with the operator #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
958bda8 to
8a0c6ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds the ability to override Redis cache configuration using a DSN (Data Source Name) field instead of specifying individual connection parameters (host, port, index). This provides more flexibility for users who have pre-configured Redis DSN strings.
Key Changes:
- Added
RedisDsnfield toRedisSpecstruct for specifying Redis connection as a complete DSN string - Updated cache configuration logic to prioritize DSN when provided, falling back to individual fields otherwise
- Applied DSN support consistently across AppCache, SessionCache, and Worker configurations
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 11 comments.
| File | Description |
|---|---|
| api/v1/store.go | Adds RedisDsn field to RedisSpec struct to support DSN-based Redis configuration |
| api/v1/store_env.go | Updates getAppCache(), getSessionCache(), and getWorker() to use DSN when provided, otherwise build from individual fields |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8a0c6ad to
f0dba3d
Compare
f0dba3d to
18ee739
Compare
18ee739 to
995c531
Compare
renaudhager
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.