-
Notifications
You must be signed in to change notification settings - Fork 867
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: sync notification controller configmaps/secrets first #3075
Conversation
… other informers Signed-off-by: zachaller <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3075 +/- ##
==========================================
- Coverage 81.73% 81.71% -0.02%
==========================================
Files 134 134
Lines 20406 20406
==========================================
- Hits 16678 16675 -3
- Misses 2869 2871 +2
- Partials 859 860 +1
☔ View full report in Codecov by Sentry. |
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
sync notification controller configmaps/secrets first before starting other informers Signed-off-by: zachaller <[email protected]>
…3075) sync notification controller configmaps/secrets first before starting other informers Signed-off-by: zachaller <[email protected]> Signed-off-by: Philip Clark <[email protected]>
…3075) sync notification controller configmaps/secrets first before starting other informers Signed-off-by: zachaller <[email protected]> Signed-off-by: Philip Clark <[email protected]>
…3075) sync notification controller configmaps/secrets first before starting other informers Signed-off-by: zachaller <[email protected]> Signed-off-by: Philip Clark <[email protected]>
A bug was introduced with self service notifications that due to the addition of the add to informer events. This created a race condition on controller startup. We would end up populating our notification api map with an empty value because it could not find the configmap because the informer was synced after starting up of the rollout informer which called defaultEventf function to create the add to informer events.
This PR changes the order that informers are started and waits for the notification informers to sync before starting other informers.
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.