Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
koyeb instance cp
This is implementation of #126 which enables copying to/from koyeb instances
The implementation is quite similar to the
kubectl cp
(don't recommend looking at kubectl code tho as it's super messy to say the least :D)TLDR; implementation is based on tarring and untaring input files/folders
tar
tool on the koyeb instance side. This also assumes that tar tool needs to be installed on koyeb instance (this assumption is made also inkubectl cp
)tar
tool on the koyeb instance side (2) stream output to the koyeb-cli (3) extract tar programmatically on the koyeb-cli sidePrerequisites
Merge koyeb/koyeb-api-client-go#80
Testing
Copy to koyeb instance
koyeb instances cp -c ~/.koyeb.staging.yaml /local/path 676be6b2:/remote/path
Copy from koyeb instance
koyeb instances cp -c ~/.koyeb.staging.yaml 676be6b2:/remote/path /local/path