-
Notifications
You must be signed in to change notification settings - Fork 80
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
feat(operator): catalog metadata types for prior index data #29
Conversation
Blocking on #28 so I can rebase. |
return err | ||
case err == nil && len(meta.PastMirrors) != 0: | ||
// No past run(s) are allowed when generating a full imageset. | ||
// QUESTION: should the command just log a warning and ignore this metadata instead? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@estroz Responding to your comment in the code, would it better to prompt the user or would we send a warning when creating a full and destroy the current metadata. @afflom and I talked about this and the user should be able to create a full even if there is existing metadata, but the only area of concern I have about this is the user accidentally running create full
. Maybe a prompt or a metadata backup? WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prompt sounds fine. I'll create a follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but needs a change for the diff Uid to maintain the same Uid between runs. We may want to also discuss how we are going to handle new create full
runs on currently managed data.
This commit also hoists the Uid field to the top-level MetadataSpec object, since it identifies the whole metadata object and not just an individual run. Signed-off-by: Eric Stroczynski <ericstroczynski@gmail.com>
if err != nil { | ||
return fmt.Errorf("creating %s: %v", nameInArchive, err) | ||
} | ||
if _, found := foundFiles[fpath]; !found { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just moved the actual archive logic left and indent, and localized the skip logic. No semantic changes made other than skipping .
explicit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
This PR adds the ability to store and pull image set metadata from a backend, and fixes some
create
metadata handling issues. Currently only a local directory storage backend is supported.Signed-off-by: Eric Stroczynski ericstroczynski@gmail.com