-
Notifications
You must be signed in to change notification settings - Fork 882
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
fixed to update podgroup resource #3439
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/auto-cc |
fb35d43
to
41a65c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the right way is to get the latest podgroup when the update fails
@hwdef @googs1025 I agrees with you, it can reduce one request in most cases. |
41a65c1
to
eb25200
Compare
eb25200
to
9f1425e
Compare
Signed-off-by: calvin <wen.chen@daocloud.io>
9f1425e
to
f0eb79f
Compare
@lowang-bh @hwdef PTAL |
Is it useful to update only ResourceVersion? Should the entire resource be updated? In addition, I think the naming of variables is ambiguous. The new resources obtained should not be |
@hwdef thanks for you review. |
|
Also just modify the resourceversion instead of the field is ok? |
|
Yeah, this is unacceptable: ) |
fixed: #3104
Because of resource version, It's easy to fail to update podgroup. we should obtain the latest resource version before updating.