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

fix(moac): timeouts when updating volume custom resource #901

Merged
merged 1 commit into from
May 26, 2021

Conversation

jkryl
Copy link
Contributor

@jkryl jkryl commented May 26, 2021

The problem was that the objects (old and new one) were basically
the same except that order of entries in replicas array was different.
Problem #1 is that we do useless update of CR and #2 is that k8s
does not emit mod event in such case so volume-operator was timing
out waiting for the event.

The fix is to enforce deterministic order of entries in replicas
array so that deep-equal compares the objects correctly.

The problem was that the objects (old and new one) were basically
the same except that order of entries in replicas array was different.
Problem #1 is that we do useless update of CR and #2 is that k8s
does not emit mod event in such case so volume-operator was timing
out waiting for the event.

The fix is to enforce deterministic order of entries in replicas
array so that deep-equal compares the objects correctly.
@jkryl jkryl self-assigned this May 26, 2021
@auto-assign auto-assign bot requested review from cjones1024 and jonathan-teh May 26, 2021 12:48
@jkryl
Copy link
Contributor Author

jkryl commented May 26, 2021

bors merge

@bors
Copy link
Contributor

bors bot commented May 26, 2021

Build succeeded:

@bors bors bot merged commit 011003f into develop May 26, 2021
@bors bors bot deleted the feature/double-update branch May 26, 2021 15:06
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