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

EnterpriseSearch: Set status.ObservedGeneration from metadata.Generation #5526

Merged

Conversation

naemono
Copy link
Contributor

@naemono naemono commented Mar 28, 2022

related to #3392

This change allows status.ObservedGeneration to be kept in sync with metadata.Generation according to the rules described in the above issue. This change adds a set of unit tests which show more details into when observedGeneration will, and will not be updated according to any errors/situations that may occur during reconciliation. End to end tests are in place as well.

Remaining Items

  • E2E test

naemono added 2 commits March 28, 2022 09:01
…/status during reconciliation.

Fix broken test, and ensure observed generation is updated during tests.
remove unneeded IsConfiguredIfSet change.
simplify return logic.
remove unneeded log statement.
@botelastic botelastic bot added the triage label Mar 28, 2022
@naemono naemono marked this pull request as ready for review March 28, 2022 15:41
@naemono
Copy link
Contributor Author

naemono commented Mar 28, 2022

run full pr build

@thbkrkr thbkrkr added the >enhancement Enhancement of existing functionality label Mar 29, 2022
@botelastic botelastic bot removed the triage label Mar 29, 2022
@naemono naemono added the >feature Adds or discusses adding a feature to the product label Mar 30, 2022
Copy link
Collaborator

@pebrc pebrc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@naemono naemono merged commit 6875256 into elastic:main Apr 7, 2022
@thbkrkr thbkrkr added the v2.3.0 label Apr 21, 2022
@barkbay barkbay removed the >feature Adds or discusses adding a feature to the product label Jun 13, 2022
fantapsody pushed a commit to fantapsody/cloud-on-k8s that referenced this pull request Feb 7, 2023
…ion (elastic#5526)

* Update enterprise search reconcile logic to update observedgeneration/status during reconciliation.
Fix broken test, and ensure observed generation is updated during tests.
remove unneeded IsConfiguredIfSet change.
simplify return logic.
remove unneeded log statement.

* Update Enterprise Search e2e mutation tests to check observedGeneration.

* update status optimization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement Enhancement of existing functionality v2.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants