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

Vendor pack CLI code to build with Buildpacks #3445

Merged
merged 4 commits into from
Jan 16, 2020

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Dec 24, 2019

No description provided.

@codecov
Copy link

codecov bot commented Dec 24, 2019

Codecov Report

Merging #3445 into master will decrease coverage by 0.29%.
The diff coverage is 38.46%.

Impacted Files Coverage Δ
pkg/skaffold/util/tar.go 39.7% <ø> (-17.77%) ⬇️
pkg/skaffold/docker/image.go 76.36% <ø> (-0.91%) ⬇️
pkg/skaffold/build/buildpacks/logger.go 0% <0%> (ø)
pkg/skaffold/build/buildpacks/lifecycle.go 66% <55.55%> (-18.42%) ⬇️
...affold/kubernetes/portforward/kubectl_forwarder.go 68.29% <0%> (+2.43%) ⬆️

@dgageot dgageot force-pushed the pack branch 7 times, most recently from 9f8a143 to f5ec78f Compare January 10, 2020 13:46
@dgageot dgageot marked this pull request as ready for review January 13, 2020 10:31
Copy link
Member

@briandealwis briandealwis left a comment

Choose a reason for hiding this comment

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

LGTM modulo the go-licenses churn (#3493)

pkg/skaffold/build/buildpacks/lifecycle.go Outdated Show resolved Hide resolved
pkg/skaffold/build/buildpacks/logger.go Show resolved Hide resolved
@dgageot
Copy link
Contributor Author

dgageot commented Jan 15, 2020

@briandealwis you should be able to LGTM since all the changes are buildpacks related now. The go-licences part was merged.

Comment on lines +53 to +58
if !artifact.ForcePull {
if err := b.pull(ctx, out, builderImage); err != nil {
return "", err
Copy link
Member

Choose a reason for hiding this comment

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

This is confusing: if we aren't force-pulling then we pull the image? Doesn't pack do this anyways? Or this needs a comment to explain why.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pack is either pulling always or pulling never. This is trying to pullIfNotPresent. I'll update the code with a comment.

if !artifact.ForcePull {
// If ForcePull is true, we let pack find and pull the run image
var err error
runImage, err = b.findRunImage(ctx, artifact, builderImage)
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't pack already do this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pack is either pulling always or pulling never. This is trying to pullIfNotPresent. I'll update the code with a comment.

Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
pkg/skaffold/build/buildpacks/lifecycle.go Outdated Show resolved Hide resolved
pkg/skaffold/build/buildpacks/lifecycle.go Outdated Show resolved Hide resolved
Signed-off-by: David Gageot <david@gageot.net>
@dgageot dgageot merged commit 5cc7694 into GoogleContainerTools:master Jan 16, 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