-
Notifications
You must be signed in to change notification settings - Fork 880
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: rollouts getting stuck due to bad rs informer updates #3200
fix: rollouts getting stuck due to bad rs informer updates #3200
Conversation
Signed-off-by: Zach Aller <[email protected]>
63bddcc
to
6e610a4
Compare
Signed-off-by: Zach Aller <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3200 +/- ##
==========================================
- Coverage 81.84% 81.80% -0.04%
==========================================
Files 134 134
Lines 20558 20576 +18
==========================================
+ Hits 16825 16832 +7
- Misses 2869 2875 +6
- Partials 864 869 +5 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Zach Aller <[email protected]>
Signed-off-by: Zach Aller <[email protected]>
Signed-off-by: Zach Aller <[email protected]>
Signed-off-by: Zach Aller <[email protected]>
Signed-off-by: Zach Aller <[email protected]>
…s-informer-update-logic
Signed-off-by: Zach Aller <[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.
LGTM
Signed-off-by: Zach Aller <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
* fix: for rollouts getting stuck due to bad rs informer updates Signed-off-by: Zach Aller <[email protected]> * fix error msg Signed-off-by: Zach Aller <[email protected]> * change logic Signed-off-by: Zach Aller <[email protected]> * error fmt Signed-off-by: Zach Aller <[email protected]> * change if logic Signed-off-by: Zach Aller <[email protected]> * add test Signed-off-by: Zach Aller <[email protected]> * cleanup test Signed-off-by: Zach Aller <[email protected]> * cleanup test Signed-off-by: Zach Aller <[email protected]> * do not double call Signed-off-by: Zach Aller <[email protected]> --------- Signed-off-by: Zach Aller <[email protected]>
…3200) * fix: for rollouts getting stuck due to bad rs informer updates Signed-off-by: Zach Aller <[email protected]> * fix error msg Signed-off-by: Zach Aller <[email protected]> * change logic Signed-off-by: Zach Aller <[email protected]> * error fmt Signed-off-by: Zach Aller <[email protected]> * change if logic Signed-off-by: Zach Aller <[email protected]> * add test Signed-off-by: Zach Aller <[email protected]> * cleanup test Signed-off-by: Zach Aller <[email protected]> * cleanup test Signed-off-by: Zach Aller <[email protected]> * do not double call Signed-off-by: Zach Aller <[email protected]> --------- Signed-off-by: Zach Aller <[email protected]> Signed-off-by: ashutosh16 <[email protected]>
This fixes: #3080 and re-works the if logic to avoid the
if err==nil
constructs.k8s also does not seem to have a way to test/mock informer update functions but I did add some unit tests for when rs updates fail.