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

Elastic Maps: Set status.ObservedGeneration from metadata.Generation #5536

Merged
merged 5 commits into from
Apr 11, 2022

Conversation

naemono
Copy link
Contributor

@naemono naemono commented Mar 29, 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 test is also present.

Remaining Items (Reason for Draft)

  • E2E test

naemono added 3 commits March 29, 2022 08:10
test updates to ensure observed generation updates.
adjust certificate reconciliation to overwrite results.
Add comments about new behavior in test.
@naemono naemono marked this pull request as ready for review March 29, 2022 20:44
@naemono
Copy link
Contributor Author

naemono commented Mar 30, 2022

run full pr build

@naemono naemono added >enhancement Enhancement of existing functionality >feature Adds or discusses adding a feature to the product labels 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 👍

pkg/controller/maps/controller.go Outdated Show resolved Hide resolved
pkg/controller/maps/controller_test.go Outdated Show resolved Hide resolved
@naemono naemono merged commit 316241e into elastic:main Apr 11, 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
…lastic#5536)

* maps observed generation updates.
test updates to ensure observed generation updates.
adjust certificate reconciliation to overwrite results.
Add comments about new behavior in test.

* Add updated/generated yaml files

* Add maps generation e2e test

* remove unneeded newline

* optimize conflict detection logic, and remove the logging.
DRY up test a bit.
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