-
Notifications
You must be signed in to change notification settings - Fork 2k
Add utilities for copying files. #375
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
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns 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 |
@brendandburns
adding copyFileTo Pod may not be appropriate as it defeats the purpose of docker / kubernetes. but may be for testing people can use it. |
Comments addressed, please re-check. Thanks! |
@kondapally1989 I added you as a member of the repo, so when it looks good you should be able to say '/lgtm' and it will then merge automatically. Thanks! |
public static void copyFile(String namespace, String pod, String srcPath, Path dest) | ||
throws ApiException, IOException { | ||
Copy c = new Copy(); | ||
InputStream is = c.copyFile(namespace, pod, null, srcPath); |
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 travis build is throwing error here , string to Path.
is it copyFileFromPath ?
|
||
public InputStream copyFileFromPod(String namespace, String pod, String srcPath) | ||
throws ApiException, IOException { | ||
return copyFile(namespace, pod, null, srcPath); |
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.
is it copyFileFromPod ?
} | ||
|
||
public InputStream copyFileFromPod(V1Pod pod, String srcPath) throws ApiException, IOException { | ||
return copyFile(pod, null, srcPath); |
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.
is it copyFileFromPod ?
|
||
public InputStream copyFileFromPod(V1Pod pod, String container, String srcPath) | ||
throws ApiException, IOException { | ||
return copyFile( |
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.
is it copyFileFromPod ?
} | ||
} | ||
|
||
public void copyDirectoryFromPod(V1Pod pod, String srcPath, Path destination) |
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.
is it copyDirectoryToPod ?
|
||
public void copyDirectoryFromPod(String namespace, String pod, String srcPath, Path destination) | ||
throws ApiException, IOException { | ||
copyDirectoryToPod(namespace, pod, null, srcPath, destiation); |
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.
destination
public static void copyFile(String namespace, String pod, String srcPath, Path dest) | ||
throws ApiException, IOException { | ||
Copy c = new Copy(); | ||
InputStream is = c.copyFile(namespace, pod, null, srcPath); |
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.
copyFileFromPod?
/hold |
/hold cancel @brendandburns once you fix those compile issues, i think it will automatically merge |
@kondapally1989 updated, thanks for the patience! |
@brendandburns format issue in compile time. |
@kondapally1989 sorry for the noise, I swear I fixed the formatting, but apparently not. Please take another look. |
/lgtm |
Closes #353