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: set resource Status using patch instead of update #6

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

mydoomfr
Copy link
Contributor

Resource .Status should be updated using Patch() instead of Update().

Also, if a conflict is detected, it means the original object has been changed in etcd and we're working on an outdated object. So, it's probably better to requeue the reconciliation.

@mydoomfr mydoomfr marked this pull request as ready for review August 27, 2024 11:10
Signed-off-by: PINCHON Benjamin <benjamin.pinchon@orange.com>
Signed-off-by: PINCHON Benjamin <benjamin.pinchon@orange.com>
Signed-off-by: PINCHON Benjamin <benjamin.pinchon@orange.com>
Copy link
Collaborator

@antrema antrema left a comment

Choose a reason for hiding this comment

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

LGTM

@mydoomfr mydoomfr merged commit a7186df into Orange-OpenSource:main Aug 27, 2024
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