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

Create directory before kubectl cp #1390

Merged
merged 3 commits into from Dec 17, 2018

Conversation

priyawadhwa
Copy link
Contributor

This PR should fix a bug where syncing files into new directories wasn't working because those directories didn't exist. This change will create the directory in the container via kubectl exec. This change also requires that the container has 'mkdir' in it, but I couldn't think of a better way to get around this.

Also adds an integration test for file sync.

fix #1365

This PR should fix a bug, where syncing files into new directories wasn't working because those directories didn't exist. This change will create the directory in the container via kubectl exec. This change also requires that the container has 'mkdir' in it, but I couldn't think of a better way to get around this.

Also adds an integration test for file sync.
@codecov-io
Copy link

codecov-io commented Dec 12, 2018

Codecov Report

Merging #1390 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1390      +/-   ##
==========================================
+ Coverage   44.68%   44.69%   +0.01%     
==========================================
  Files         109      109              
  Lines        4545     4546       +1     
==========================================
+ Hits         2031     2032       +1     
  Misses       2308     2308              
  Partials      206      206
Impacted Files Coverage Δ
pkg/skaffold/sync/sync.go 91.3% <100%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0a0c625...eb2a690. Read the comment docs.

since the lag from "skaffold dev" can take a few seconds.
Save synced dirs in memory so that `kubectl exec` is only called when a
new directory may need to be created in the container.
@priyawadhwa priyawadhwa merged commit d992568 into GoogleContainerTools:master Dec 17, 2018
@priyawadhwa priyawadhwa deleted the sync branch December 17, 2018 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sync does not sync new directories
4 participants