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

For imagestreamtags referencing ImageStreamImage, copy by tag #49

Merged
merged 1 commit into from Feb 28, 2020

Conversation

sseago
Copy link
Collaborator

@sseago sseago commented Feb 27, 2020

For ImageStreamTags, when the tag references something external
(docker image, ImageStreamTag, or ImageStreamImage), we were
copying any internal images without tag and relying on the
ImageStreamTag restore to recreate the tags. This exposes us to
an upstream Velero issue where a prior ImageStreamTag restore
(the one which should have created the tag or image which this
one references) completes but the resource isn't yet available,
so the ImageStreamTag resource fails to restore.

This commit modifies the behavior for local-namespace ImageStreamImage
references -- copying these by tag into the registry rather than
restoring via the ImageStreamTag resource. The race condition still
potentially exists for references to other namespaces included in the backup
or references by ImageStreamTag.

For ImageStreamTags, when the tag references something external
(docker image, ImageStreamTag, or ImageStreamImage), we were
copying any internal images without tag and relying on the
ImageStreamTag restore to recreate the tags. This exposes us to
an upstream Velero issue where a prior ImageStreamTag restore
(the one which should have created the tag or image which this
one references) completes but the resource isn't yet available,
so the ImageStreamTag resource fails to restore.

This commit modifies the behavior for local-namespace ImageStreamImage
references -- copying these by tag into the registry rather than
restoring via the ImageStreamTag resource. The race condition still
potentially exists for references to other namespaces included in the backup
or references by ImageStreamTag.
@sseago sseago merged commit 7f70f0d into migtools:master Feb 28, 2020
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.

None yet

2 participants