Skip to content

Auto sync with Buildpacks#3555

Merged
dgageot merged 1 commit intoGoogleContainerTools:masterfrom
dgageot:bp-sync
Jan 27, 2020
Merged

Auto sync with Buildpacks#3555
dgageot merged 1 commit intoGoogleContainerTools:masterfrom
dgageot:bp-sync

Conversation

@dgageot
Copy link
Copy Markdown
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 david@gageot.net

@codecov
Copy link
Copy Markdown

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 <david@gageot.net>
insecureRegistries[r] = true
}

// TODO(dgageot): what about debug?
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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