-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sd 854 parallelize fetching of argocd diff in telefonistka #43
Sd 854 parallelize fetching of argocd diff in telefonistka #43
Conversation
f431bf8
to
e83c23b
Compare
e83c23b
to
762a1a8
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.
Nice one! Added some initial comments for consideration.
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.
It's still global. I added a few code suggestions of what I meant by moving it up one level to the caller and creating an isolated clients struct in the test. Hopefully that makes sense.
Co-authored-by: Hannes Gustafsson <[email protected]>
Co-authored-by: Hannes Gustafsson <[email protected]>
Co-authored-by: Hannes Gustafsson <[email protected]>
Co-authored-by: Hannes Gustafsson <[email protected]>
Co-authored-by: Hannes Gustafsson <[email protected]>
Co-authored-by: Hannes Gustafsson <[email protected]>
Co-authored-by: Hannes Gustafsson <[email protected]>
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.
Lint errors needs resolving, but otherwise LGTM
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.
With dropping the last remaining err check left over looks good to me.
847c5fc
d1a00e5
to
847c5fc
Compare
Description
This pull request parallelizes the fetching of argocd diffs in telefonistka.
For testing, I had to make
argoCdClients
a global inside of the argocd package. This is so that it could be overwritten during testing. As a result,InitArgoClients()
is called inside the handler to initialize the argocd clients, instead of being called from within the functions needing the client.Type of Change
Checklist