-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't request ES to clear routing allocation exclude at every reconci…
…liation (#2610) * Don't clear shard allocation excludes in every reconciliation This commits stores the last updated value of cluster routing allocation exclude in an annotation of the Elasticsearch resource. Before doing any call to the ES API for that setting, we check the existing annotation. If its value is the same as the one we're about to set, skip the ES API call. If not, do the call then store the setting value in the annotation. The annotation can be removed at any time: it will just trigger a call to the Elasticsearch API with the right expected value, and the annotation will be set again. Users can manipulate this setting behind our back, in which case the operator will only react based on the annotation value. We consider it's the user responsibility to not mess cluster settings up at this point. * Fix comment/function name mismatch
- Loading branch information
Showing
3 changed files
with
156 additions
and
11 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