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

database: remove LayerWithContent from interface #619

Merged
merged 2 commits into from
Sep 13, 2018

Conversation

KeyboardNerd
Copy link
Contributor

  • Layer is renamed to LayerMetadata
  • LayerWithContent is renamed to Layer
  • Remove redundant interfaces to pertain layer's metadata

@KeyboardNerd
Copy link
Contributor Author

After this, there will be a PR for relating features with Lister/Detector to enable the API wise filtering.

Copy link
Contributor

@jzelinskie jzelinskie left a comment

Choose a reason for hiding this comment

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

only a nitpick and a question

worker.go Outdated
return nil, err
}

log.WithFields(
log.Fields{
Copy link
Contributor

Choose a reason for hiding this comment

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

put this on the line above

j, _ := json.Marshal(m)
json.Unmarshal(j, &c)
return c
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't we need this anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, we don't need it. We will not compare crafted MetadataMap against MetadataMap from database query result any more because Updater will only compare MetadataMaps from database.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://github.com/coreos/clair/blob/master/updater.go#L515 It may be by design that we will only create notification when there's big change in the vulnerability. Maybe, in the future we can make it configurable.

@KeyboardNerd KeyboardNerd merged commit f98ff58 into quay:master Sep 13, 2018
@KeyboardNerd KeyboardNerd deleted the sidac/rm_layer branch September 13, 2018 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants