-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
fix(cli): core redis compression based on argocd-cmd-params-cm
#21840
Conversation
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21840 +/- ##
==========================================
+ Coverage 55.58% 55.61% +0.02%
==========================================
Files 339 339
Lines 56874 56891 +17
==========================================
+ Hits 31616 31638 +22
+ Misses 22609 22603 -6
- Partials 2649 2650 +1 ☔ View full report in Codecov by Sentry. |
c419354
to
57d8ebb
Compare
Signed-off-by: Netanel Kadosh <[email protected]>
57d8ebb
to
0a20804
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.
Hi, thanks for raising this PR. We recently introduced the redis-compress flag as a global flag in #21786 which I believe solves the problem for both the issues you specified above. Furthermore, what you're doing in this PR is getting the flag value from the controller flag and setting it in the headless function. Instead of all this, it is better to introduce the redis-compress
flag as a global flag (see this comment) than only removing this flag from specific subcommands.
Thanks for adding that feature, I just want to verify, both |
@NetanelK exactly. The compression on the controller should match with the CLI. If it doesn't, the cache key will be missing. |
The controller is already doing the fetching part. No need to do the same for CLI.
Tagging @ishitasequeira / @crenshaw-dev for this answer. |
Fixes #15912
Fixes #15077
This PR adds optional Redis compression from
argocd-cmd-params-cm
, which defaults togzip
, into headless mode appstatecache.Fix should be cherry-picked into v2.11, v2.12 and v2.13
Checklist: