-
Notifications
You must be signed in to change notification settings - Fork 14
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
Pass Redis URL as Env Var to Limitador deployment. #109
Conversation
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.
I won't block this, but I wonder whether only inserting the creds in the redis URL if needed wouldn't be preferable. I don't know if setting URLs like this is usually done using a secret... if that's a known pattern, please ignore me. @guicassolato might have a better understanding. (was this comment even useful now?!)
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.
Changes looks good overall, some comments dropped to enhance the implementation (IMO)
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #109 +/- ##
==========================================
+ Coverage 68.59% 69.56% +0.96%
==========================================
Files 14 14
Lines 987 1025 +38
==========================================
+ Hits 677 713 +36
- Misses 269 270 +1
- Partials 41 42 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
7c666fb
to
ecd2b83
Compare
It'd be great to have this in the 0.7 release... wdyt? Can we get to a good state in time? |
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.
Looking good, just one comment
Type changed from ObjectReference to LocalObjectReference
6a1defc
to
2be6e17
Compare
Closes: #106
This change pass the Redis URL to the limitador-server as a Environment Variable in the deployment config.
Verification
Verification steps requires Redis to be configured in the cluster so the running limitador does not have connection error logs.
Set up the kind cluster with this deployment.
Create redis deployment, service and secret. The secret will be used in the limitador deployment and should be created in the same namespace. See changes in docs about this.
Verify the redis connections work.
Deploy limitador with redis.
Once deployment is complete:
Expected output to contain
Expect logs not to contain any errors
Verify the rediscache connections work.
Deploy limitador with rediscache.
Once deployment is complete:
Expected output to contain
Expect logs not to contain any errors
Verify the disk connections work.
This does not use the redis but sets custom command arguments.
Deploy limitador with disk storage.
Once deployment is complete:
Expected output to contain
Expect logs not to contain any errors
Verify the default / in-memory deployment.
This does not use the redis and does not set custom commands.
Deploy limitador with disk storage.
Once deployment is complete:
Expected output to contain
Expect logs not to contain any errors
Error logs in Operator
If redis secret is mising:
If URL field is missing from the secret: