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

Mock rework for concurrent usage, remove entity ID annotations, requeue after incrementHumioClusterPodRevision and refactor podReadyCountByRevision #843

Merged
merged 7 commits into from
Aug 21, 2024

Conversation

SaaldjorMike
Copy link
Member

@SaaldjorMike SaaldjorMike commented Aug 13, 2024

Depends on: humio/cli#169

@SaaldjorMike SaaldjorMike changed the title Improve mock for concurrent usage and remove entity ID annotation Mock rework for concurrent usage, remove entity ID annotations, requeue after incrementHumioClusterPodRevision and refactor podReadyCountByRevision Aug 15, 2024
@SaaldjorMike SaaldjorMike force-pushed the mike/fix-mock branch 2 times, most recently from 5ca71ec to 226dd92 Compare August 15, 2024 13:56
@SaaldjorMike SaaldjorMike marked this pull request as ready for review August 15, 2024 14:40
@SaaldjorMike SaaldjorMike requested a review from a team as a code owner August 15, 2024 14:40
…ountByRevision

Requeue after incrementHumioClusterPodRevision fixes a bug where the
operator could in some cases create a new pod using the old revision
as it did not fetch the updated HumioCluster resource before creating
new pods.

Refactor podReadyCountByRevision to extract the logic for what pods to
should be marked as running and ensures we update only the pods that match
the expected pod revision as running, as any older pod revisions should
already be handled during previous iterations.
@jswoods
Copy link
Contributor

jswoods commented Aug 20, 2024

Lgtm!

@SaaldjorMike SaaldjorMike merged commit 4eb7b82 into master Aug 21, 2024
17 checks passed
@SaaldjorMike SaaldjorMike deleted the mike/fix-mock branch August 21, 2024 08:37
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.

3 participants