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 empty layer before saving on remote images #852

Merged
merged 4 commits into from
May 4, 2022

Conversation

jjbustamante
Copy link
Member

Description

The following fix initialized the cached image to add an empty layer in the case is needed

Fixes #830

Signed-off-by: Juan Bustamante [email protected]

@jjbustamante jjbustamante requested a review from a team as a code owner April 27, 2022 22:28
@natalieparellano
Copy link
Member

@jjbustamante in the new imgutil .WorkingDir() returns a value and an error, so you need to update some lines in exporter_test.go.

@jjbustamante
Copy link
Member Author

@jjbustamante in the new imgutil .WorkingDir() returns a value and an error, so you need to update some lines in exporter_test.go.

Interesting, I didn't change anything related to that method. The error came actually after merging this

@natalieparellano
Copy link
Member

Ah @jjbustamante that makes sense - we hadn't bumped imgutil in the lifecycle yet.

# This is the 1st commit message:

WIP - Initialized the cache image to add an empty layer in case is needed

Signed-off-by: Juan Bustamante <[email protected]>

# This is the commit message #2:

Fixing compilation error caused by imgutil PR #141

Signed-off-by: Juan Bustamante <[email protected]>
@jjbustamante jjbustamante force-pushed the bugfix/add-empty-layer-on-remote-image branch from 6387ba3 to 62bcfe6 Compare May 3, 2022 16:54
@natalieparellano natalieparellano merged commit bb40e22 into main May 4, 2022
@natalieparellano natalieparellano deleted the bugfix/add-empty-layer-on-remote-image branch May 4, 2022 17:37
@natalieparellano natalieparellano added this to the lifecycle-0.14.1 milestone May 17, 2022
@jjbustamante jjbustamante self-assigned this Jun 3, 2022
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.

Empty Registry Cache Images fail to be written to gcr
2 participants