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

improve: remove optimistic locking from update for SSA in dependent resources #2008

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Aug 9, 2023

No description provided.

@csviri csviri self-assigned this Aug 9, 2023
@openshift-ci openshift-ci bot requested review from adam-sandor and metacosm August 9, 2023 07:59
@shawkins
Copy link
Collaborator

With #2012 optimistic locking is not required for either SSA or non-SSA - but it's still a good idea with non-SSA.

The rationale here is that nearly all SSA reconstructive operations don't care about what others have done. Only if you want to take over management fo those changes do you need the absolute freshest state.

There are other corner cases with SSA, such as needing to change a immutable field on a deployment, or trying to overwrite a non-managed change that confuses SSA, such as something modifying port protocol - but those should be addressed with workflow mechanisms and shouldn't depend on locking. At worst a SSA may temporarily fail.

@csviri csviri merged commit 3fa3b97 into main Aug 14, 2023
@csviri csviri deleted the no-ol-dr branch August 14, 2023 07:16
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.

2 participants