forked from elastic/cloud-on-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move first ES cluster state observation out of go routine (elastic#5783)
Move the first observation out of the goroutine to make it synchronous to avoid an unnecessary PDB update caused when the operator restarts and we reconcile Elasticsearch with an 'unknown' health. This occured at the second reconciliation loop because we couldn't get the health at the first reconcile loop due to completely asynchronous observers. Co-authored-by: guozhi.li <guozhi.li@daocloud.io> Co-authored-by: Thibault Richard <thbkrkr@users.noreply.github.com>
- Loading branch information
1 parent
9623ef9
commit 215ae8b
Showing
3 changed files
with
39 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters