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 patching PDB resources #3303

Merged
merged 3 commits into from
Dec 17, 2021
Merged

Conversation

alenkacz
Copy link
Contributor

@alenkacz alenkacz commented Dec 17, 2021

Cover letter

PDB was constantly trying to be patched because of the way how apimachinery libs internally work. This was fixed in newer version of the objectmatcher library so bumping it and ignoring the selector fixes the issue.

Fixes #3301

Release notes

Improvements

k8s: fixed a bug with attempting to patch PDB selector when not required

@alenkacz alenkacz requested a review from a team as a code owner December 17, 2021 09:12
@alenkacz alenkacz changed the title Av/pdb patch Fix patching PDB resources Dec 17, 2021
// not be updated
updated, err := resources.Update(context.TODO(), actual, actual, c, ctrl.Log.WithName("test"))
assert.NoError(t, err)
assert.False(t, updated)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this test was failing before I bumped the objectmatcher lib and started ignoring the selector

@alenkacz alenkacz merged commit 86af722 into redpanda-data:dev Dec 17, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PDB keeps being re-applied over and over because of incorrect patch computed
2 participants