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

Remove unused VFSScan #9174

Merged
merged 1 commit into from
May 27, 2020
Merged

Conversation

johngmyers
Copy link
Member

No description provided.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 25, 2020
@johngmyers
Copy link
Member Author

/kind cleanup

@k8s-ci-robot k8s-ci-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label May 25, 2020
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 25, 2020
@olemarkus
Copy link
Member

So I also went down this path. The code removed here is the only place using WriterTo interface that VFSPath has to implement.

While this code is indeed dead in kops, it is used in etcd-manager: https://github.com/kopeio/etcd-manager/blob/master/pkg/backup/vfs.go#L44 As far as I can see, it is only CopyFile though, so the rest of the code can probably be removed.

@johngmyers
Copy link
Member Author

Perhaps it would be better if etcd-manager pulled CopyFile into its own repo? I don't see any particular reason that function has to be in kops.

@johngmyers
Copy link
Member Author

Even better would be to replace the WriterTo requirement with something that allows direct copy to another Path.

@johngmyers
Copy link
Member Author

Created kopeio/etcd-manager#324 which removes the dependency on CopyFile and the extra temporary file it creates.

@justinsb
Copy link
Member

Yeah, we should remove this if it's not used. I think it was used for mirroring keys, but we ended up with an approach at the higher (object level) of abstraction IIRC.

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 27, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johngmyers, justinsb

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 27, 2020
@k8s-ci-robot k8s-ci-robot merged commit 92f8e22 into kubernetes:master May 27, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone May 27, 2020
@johngmyers johngmyers deleted the remove-vfsscan branch May 27, 2020 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants