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

Auto sync with Buildpacks #3555

Merged
merged 1 commit into from
Jan 27, 2020
Merged

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Jan 22, 2020

This adds automatic sync configuration for buildpacks.

Buildpacks can set special metadata on the image to indicate which files need to be synced.

More work is needed on this feature but I'd like this first step to be reviewed and merged.

Signed-off-by: David Gageot [email protected]

@codecov
Copy link

codecov bot commented Jan 22, 2020

Codecov Report

Merging #3555 into master will decrease coverage by 0.05%.
The diff coverage is 71.73%.

Impacted Files Coverage Δ
pkg/skaffold/build/local/local.go 60% <0%> (ø) ⬆️
pkg/skaffold/docker/image_util.go 0% <0%> (ø) ⬆️
pkg/skaffold/build/cache/lookup.go 100% <100%> (ø) ⬆️
pkg/skaffold/build/buildpacks/lifecycle.go 80.55% <100%> (+9.96%) ⬆️
pkg/skaffold/build/buildpacks/types.go 100% <100%> (ø) ⬆️
pkg/skaffold/build/buildpacks/metadata.go 100% <100%> (ø)
pkg/skaffold/build/cache/hash.go 75.94% <100%> (+0.62%) ⬆️
pkg/skaffold/build/cache/cache.go 56.81% <100%> (+1%) ⬆️
pkg/skaffold/runner/runcontext/context.go 75.6% <100%> (+1.25%) ⬆️
pkg/skaffold/build/local/types.go 69.44% <100%> (+0.87%) ⬆️
... and 3 more

@dgageot dgageot force-pushed the bp-sync branch 3 times, most recently from 70e3c96 to b599f96 Compare January 24, 2020 08:59
@balopat balopat self-assigned this Jan 24, 2020
Signed-off-by: David Gageot <[email protected]>
@@ -70,13 +71,17 @@ func GetRunContext(opts config.SkaffoldOptions, cfg latest.Pipeline) (*RunContex
insecureRegistries[r] = true
}

// TODO(dgageot): what about debug?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently debug does not do sync. Also during debugging not sure how the restart would impact the session - I guess they would reconnect...but my gut feeling is that we can safely ignore this for now for debug.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'll remove the comment!

Copy link
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! I would love to try it out though :)

@dgageot dgageot merged commit 749335c into GoogleContainerTools:master Jan 27, 2020
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.

4 participants