-
Notifications
You must be signed in to change notification settings - Fork 167
fix: remove CreationTimestamp add ResourceVersion #439
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: LY-today <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: LY-today 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 |
Hi @LY-today. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@saza-ku please check |
/ok-to-test |
@sanposhiho Hello, I see the process is stalled, what else needs to be done to move forward? |
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 also need to fix resourceapplier, don't we?
I don't understand what you mean. Is there any problem with resourceapplier? |
Because |
@saza-ku Does this mean that we need to add the logic of deleting CreationTimestamp in removeUnnecessaryMetadata? |
Signed-off-by: LY-today <[email protected]>
@saza-ku done |
@saza-ku Is there anything else that needs to be adjusted? |
pod.ObjectMetaApplyConfiguration.CreationTimestamp = nil | ||
pod.ObjectMetaApplyConfiguration.ResourceVersion = nil | ||
|
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.
Could you fix it by making SnapshotService
use resourceapplier
? I think SnapshotService
also should use resourceapplier
.
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.
Unfortunately, removeUnnecessaryMetadata is a private function and cannot be referenced in snapshots.
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.
And the input parameters do not match
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.
Unfortunately, removeUnnecessaryMetadata is a private function and cannot be referenced in snapshots.
I mean SnapshotService
should use resourceapplier
to create resources, not by using clientset.Interface
.
And the input parameters do not match
Yeah we might need to think about things like FieldManager. If you aren't having trouble with SnapshotService
, you could leave it. I would create another issue.
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.
Unfortunately, removeUnnecessaryMetadata is a private function and cannot be referenced in snapshots.
I mean
SnapshotService
should useresourceapplier
to create resources, not by usingclientset.Interface
.And the input parameters do not match
Yeah we might need to think about things like FieldManager. If you aren't having trouble with
SnapshotService
, you could leave it. I would create another issue.
I haven't encountered this problem. It seems that all resources that need to be applied should be implemented in this way. In this case, can we merge this PR first, and then I will open a separate one to follow up on your question?
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.
Yeah we could first merge the fix to resourceapplier
and then fix SnapshotService
.
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.
@saza-ku Is there anything else I need to do with this PR? Or can it be merged?
#422