-
Notifications
You must be signed in to change notification settings - Fork 272
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
feat!: Filter labels on the server instead of client to allow more label filtering options #832
Conversation
737894d
to
b567975
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #832 +/- ##
==========================================
- Coverage 73.53% 73.47% -0.07%
==========================================
Files 31 31
Lines 3140 3114 -26
==========================================
- Hits 2309 2288 -21
+ Misses 695 692 -3
+ Partials 136 134 -2 ☔ View full report in Codecov by Sentry. |
Will this work when using the Argo CD API instead of K8s to get the list of applications, too? |
I tested submitting requests to my ArgoCD instance in the same format as the kubernetes api and it worked. I would love assistance validating it with the code, but I believe this should work. I am relatively new to adding contributions to this code so I was a bit confused why there is a kubernetes and an ArgoCD implementation of I will be building this image tomorrow to test it myself (Along with the other PR I submitted today). If I see any issues, I will be sure to fix it in this PR and update you, but my local tests seemed to work. |
Hey, yeah, seems you have caught the right spot already. Thanks. I think I'm ok with this change :) Can you please fix the linter issue? Thanks. |
* This will allow supporting filtering by more label options * Multiple labels * Negative matching * Label exists regardless of value * This should reduce cpu, memory, and networking resources needed * Updated docs to reflect new capabilities Signed-off-by: Joshua Novick <[email protected]>
b567975
to
7cc61e5
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.
LGTM, this change makes sense.
It is a breaking change I suppose, so should be mentioned in the release notes CC @chengfang @pasha-codefresh
I'm not sure it is a breaking change since any label set before will work still with the same behavior externally, but I do agree that it is worth putting in the release notes. I can tell you that putting this into our environment today has allowed us to shard the image updater by label which has allowed us to do a lot more updates in parallel. The change works exactly how I hoped that it would. Thank you so much for the quick response to my PRs. |
…bel filtering options (argoproj-labs#832) Signed-off-by: Joshua Novick <[email protected]> Signed-off-by: Tchoupinax <[email protected]>
Filter labels on the server instead of client