Skip to content
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

pkg/alertmanager: wait for namespace informers syncs #3641

Merged

Conversation

simonpasquier
Copy link
Contributor

#3451 added 2 new informers on namespace resources for Alertmanager and AlertmanagerConfig but the controller wasn't modified to wait for synchronization to be complete before starting the reconciliation loop.
This change also replaces the use of cache.WaitForCacheSync by cache.WaitForNamedCacheSync as recommended in the the k8s.io/client-go doc.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier simonpasquier requested a review from a team as a code owner November 2, 2020 14:12
@simonpasquier simonpasquier changed the base branch from master to release-0.43 November 2, 2020 14:14
@simonpasquier
Copy link
Contributor Author

Found while upgrading Prometheus operator in OpenShift (see logs).

@s-urbaniak
Copy link
Contributor

great catch, lgtm, thank you!

@simonpasquier simonpasquier merged commit c070a93 into prometheus-operator:release-0.43 Nov 2, 2020
@simonpasquier simonpasquier deleted the release-0.43 branch November 2, 2020 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants