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

Add #Labels to imgutil.Image #60

Merged
merged 5 commits into from
Aug 28, 2020
Merged

Add #Labels to imgutil.Image #60

merged 5 commits into from
Aug 28, 2020

Conversation

jabrown85
Copy link
Contributor

We've got an upcoming feature that requires getting all the lables on an image instead of a specificly named label.

@jabrown85 jabrown85 requested a review from a team as a code owner August 27, 2020 15:07
@jabrown85 jabrown85 self-assigned this Aug 27, 2020
local/local_test.go Outdated Show resolved Hide resolved
remote/remote_test.go Outdated Show resolved Hide resolved
fakes/image.go Show resolved Hide resolved
@jabrown85 jabrown85 force-pushed the jab/add-labels-to-interface branch from 93fc5f8 to c814736 Compare August 27, 2020 17:51
We've got [an upcoming feature](buildpacks/lifecycle#390) that requires getting all the lables on an image instead of a specificly named label.

Signed-off-by: Jesse Brown <jabrown85@gmail.com>
Signed-off-by: Jesse Brown <jabrown85@gmail.com>
@jabrown85 jabrown85 force-pushed the jab/add-labels-to-interface branch from c814736 to adc437f Compare August 27, 2020 17:51
Signed-off-by: Jesse Brown <jabrown85@gmail.com>
@jabrown85 jabrown85 force-pushed the jab/add-labels-to-interface branch from ebda826 to e603eda Compare August 27, 2020 21:21
Signed-off-by: Jesse Brown <jabrown85@gmail.com>
@jabrown85 jabrown85 force-pushed the jab/add-labels-to-interface branch from 6269c63 to d54a998 Compare August 28, 2020 17:24
})

when("image NOT exists", func() {
it("returns an empty map", func() {
Copy link
Member

Choose a reason for hiding this comment

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

Not to be too pedantic here but I think it is returning nil not an empty map right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup. I updated the names, I think we are good.

Signed-off-by: Jesse Brown <jabrown85@gmail.com>
@ekcasey ekcasey merged commit 108a5c5 into main Aug 28, 2020
@jabrown85 jabrown85 deleted the jab/add-labels-to-interface branch August 28, 2020 19:54
ekcasey added a commit to buildpacks/lifecycle that referenced this pull request Dec 10, 2020
Falls back to slower behavior if the daemon does not accept empty layers. This allows the lifecycle to be compatible with podman which requires all layers to be preset during a docker load. buildpacks/imgutil#80

Fixes lifecycle errors in analyze, export, and rebase resulting from a bug in our daemon save logic buildpacks/imgutil#60

Signed-off-by: Emily Casey <ecasey@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants