-
Notifications
You must be signed in to change notification settings - Fork 906
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 <zachaller@users.noreply.github.com>
63bddcc
to
6e610a4
Compare
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
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 <zachaller@users.noreply.github.com>
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
…s-informer-update-logic
Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
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 <zachaller@users.noreply.github.com>
Kudos, SonarCloud Quality Gate passed!
|
* fix: for rollouts getting stuck due to bad rs informer updates Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * fix error msg Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * change logic Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * error fmt Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * change if logic Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * add test Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * cleanup test Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * cleanup test Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * do not double call Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> --------- Signed-off-by: Zach Aller <zachaller@users.noreply.github.com>
…3200) * fix: for rollouts getting stuck due to bad rs informer updates Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * fix error msg Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * change logic Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * error fmt Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * change if logic Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * add test Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * cleanup test Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * cleanup test Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> * do not double call Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> --------- Signed-off-by: Zach Aller <zachaller@users.noreply.github.com> Signed-off-by: ashutosh16 <11219262+ashutosh16@users.noreply.github.com>
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.