-
Notifications
You must be signed in to change notification settings - Fork 37
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
Optimised fleet update function of e2e test #603
Conversation
✅ Deploy Preview for kurator-dev canceled.
|
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 this is over design. If we want to implement a update function that do not conflict.
There are two ways:
- using patch instead of update
- Add this Get and Copy logic after an update conflict
74598d6
to
b5121e7
Compare
6408143
to
23b7466
Compare
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
19dbb53
to
ee27c83
Compare
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
ee27c83
to
80aabd1
Compare
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
2b396a4
to
5de9703
Compare
e2e/resources/attachedcluster.go
Outdated
return getErr | ||
} | ||
attachedCluster.ResourceVersion = originalAttachedCluster.ResourceVersion | ||
attachedClusterPatchData, createPatchErr := CreatePatchData(originalAttachedCluster, attachedCluster) |
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.
Doesn't it remove the labels and status we set
This PR has been revised and is ready to be reviewed. |
return patchData, nil | ||
} | ||
|
||
func ModifiedObjectMeta(original, modified metav1.ObjectMeta) metav1.ObjectMeta { |
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.
we donot need to deepcopy the object meta
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
d9d39df
to
421010a
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Optimised fleet update function of e2e test
Which issue(s) this PR fixes:
a part of #436